File permission in dual boot

Stuart Sears stuart at sjsears.com
Wed Oct 19 12:38:44 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fajar Priyanto wrote:
> Hi all,
> I've just made a dual boot between my FC4 and Suse10. I mount Suse10's 
> filesystem.
> 
> What I want to do is to be able to edit and save files in Suse10's filesystem. 
> Right now, when I check the ownership, it's registered to 500.500. Who's 
> this? If I do chown -R fajar.fajar /suse10, will it break Suse?
> Thanks.
yes, probably
file access is granted according to the numerical user & group id's
stored in each file's inode record.

Do you use the same login name on SuSE as you do on your fedora system?
if so, user id 500 is probably the numerical id used for the fajar user
in SuSE.

# id fajar
on your FC4 system to see what you numerical id is on FC4

if you have fewer files belonging to fajar on FC than you do on SuSE,
you are probably better off setting your local user fajar to have UID
500 and group 500 so that he inherits ownership of all those files
automatically...

you can do this in /etc/passwd and /etc/group or you can use
usermod/groupmod to alter your account settings.

# groupmod -g 500 fajar
# usermod -g fajar -u 500 fajar

if you change the fajar account you will need to transfer ownership of
his home directory and mail spool
# chown -R fajar:fajar /home/fajar /var/spool/mail/fajar

Regards

Stuart


- --
Stuart Sears RHCE RHCX
printk(KERN_WARNING "Hey who turned the DMA off?\n");
        linux-2.6.6/drivers/net/wan/z85230.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDVj5UamPtx1brPQ4RAsyHAJ42Q/foRTNmMZfuGejTByYG1SIJowCePIs3
OotHJqYGA7TI10fQiNjCoS4=
=WSZb
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list