Enightening sought: User-ID, Owner & Permission
David Fox
dfox94085 at gmail.com
Tue Jun 10 17:10:13 UTC 2008
On Mon, Jun 9, 2008 at 8:13 PM, SYNass IT Ubuntu / Linux
<i-ubux at synass.net> wrote:
> My data entered normally are: svobi & my full name !
> With my future plan it thought of: sn & its full name ...
> ... and the previously used one will be the second one !?
Adding users is pretty much a trivial thing. What is more important,
especially when migrating or accessing data between systems, or even
new installs, is the file ownership and group id. Permissions are
checked by the user id, not the given name. Oftentimes (especially on
new installs) the user id given in the installation (and in
/etc/password) doesn't match the userid numbers stored in the files'
metadata. Often this will happen when switching distributions, because
not everyone starts their first (default) user at user id 500, or
1000, or what have you. So you get a permission denied error even
though it may appear you own the files.
So you could change the user name and as long as the user id is kept
the same things should work.
Or you could chgrp everything that is in /home/$user to the users
group (if it isn't already) and addgroup this new username to the
users group. Then everybody in the users group has access to the same
files.
The user id should be automatically assigned sequentially stating at 1000.
More information about the ubuntu-users
mailing list