You are not logged in.
Pages: 1
Good evening,
I'm running into one weird problem at the moment. I want to change ownership of my users' home directory, but if I execute the following as root, bash complains that the operation is not permitted - even to root, which tries to change ownership.
chown $username /home/$username
What can possibly be the reason for this to happen?
Thanks for answers in advance
~cg
celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository
Offline
Read-only filesystem mount?
I am a gated community.
Offline
What are the current permissions on that directory? ls -ld /home/$username
Offline
I already suspect it to be. May I ask how to change it?
/dev/sda5 /home vfat defaults 0 0
Taken from /etc/fstab.
@cerebral:
drwxr-xr-x 2 root root 16384 14. Nov 19:14 /home/ishina/
Last edited by chaosgeisterchen (2007-11-21 21:52:55)
celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository
Offline
wait, vfat? You can't change unix permissions on a vfat filesystem - it doesn't support them. You can set the entire filesystem to be owned by one person with one set of permissions, but that's about it.
Why do you have your /home as vfat?
Offline
It's my shared partition with my dual-boot windows system, and as I store my data there, I automagically used it as /home. Bad news for me, I assume?
Or should I let my user own the whole filesystem?
celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository
Offline
That's a decision you'll have to make on your own. I have /home as ext3 and use ext2ifs (or is it ext2fsd? I can't recall) in windows to access it.
Offline
Hi, this is a little bad hacking, but you can assign a user and group owner in /etc/fstab directly. Here is how I mount one of my windows partition:
/dev/hda2 /mnt/windows_d vfat iocharset=utf8,codepage=850,umask=0000,dmask=0000,uid=0002,gid=disk,users,auto 0 0
uid can be set to an user name too, if you so desire, just as gid was set. You can also configure a charset and codepage for that you can see files with higher than 127 ASCII codes in the names. Note that setting umask and dmask as I did is unsafe, because just everybody can see everything. But I don't put any important things on these partitions, so I don't mind here. You are advised to be more cautious if you are willing to use it as your home partition.
And another caveat: all your home dir will be owned by one user and group and will have the same file permissions.
Of course, if you can recreate your home in a proper file system it would be better.
Satisfied users don't rant, so you'll never know how many of us there are.
Offline
Pages: 1