You are not logged in.
Hello.
I seem to be unable to change the owner of my home folder?
I have tried to use the following command:
sudo chown -R myusername /home/myusername
I even tried to log in as root and do the same, and still ls -al shows root as owner..
I think i have been able to chmod the home folder though, because i can create and delete files in my users homedir.
However, this is kinda bothering me because vncserver seem to be unable to read its passwd file as its asking for a new password every time i start it.. (unless i start it with sudo, but then it reads the passwd file from /root/.vnc/passwd)
Offline
How is it being mounted?
mount | grep <partition containing /home>Offline
Is the owner of the homefolder root with group root (root:root)? Try to change the group as well as the user with
chown -R voidwalker:wheel /home/voidwalker ofc with your username ![]()
Offline
How is it being mounted?
mount | grep <partition containing /home>
I got the msg:
/dev/sda1 on /home type fuseblk (rw,nosuid,nodev,noatime,user_id=0,group_id=0,al low_other,blksize=4096)
It is a NTFS usb drive hooked up to my Raspberry Pi btw.
Offline
Is the owner of the homefolder root with group root (root:root)? Try to change the group as well as the user with
chown -R voidwalker:wheel /home/voidwalkerofc with your username
Everything still says root root after i tried that ![]()
Offline
jrmrjnck wrote:How is it being mounted?
mount | grep <partition containing /home>I got the msg:
/dev/sda1 on /home type fuseblk (rw,nosuid,nodev,noatime,user_id=0,group_id=0,al low_other,blksize=4096)It is a NTFS usb drive hooked up to my Raspberry Pi btw.
I am not really sure, but userid=0 is root, and maybe t is the reason why it mounts as root:root.
https://groups.google.com/forum/#!topic … CLOdNkB3KE <- this might be the solution. To allow fuse to mount as other user.
Offline
Yep, NTFS is the issue. It doesn't follow the same owner-permission scheme that most *nix filesystems do. There are ways to do what you want, but it's slightly more complicated and generally less flexible. Solutions are out there, but unfortunately I don't have any more information.
Offline
Thanks for the help!
I managed to get it working by adding some options to the fstab file.
/dev/sda1 /home ntfs-3g defaults,auto,uid=1000,gid=10,umask=077 0 2
Offline
If you want proper permissions/acl support you'll have to create a usermapping from uid and gid to microsoft sid. If I don't want to share it with windows I create a usermapping like this:
https://www.tuxera.com/community/ntfs-3 … r-mapping/
#!/bin/sh
domain=$(sed -e "i obase=10\nibase=16" -e "s/[[:xdigit:]]\{8\}/\U&\n/g" /etc/machine-id | bc | {
read a
read b
read c
echo "$a-$b-$c"
})
echo "# generic \.NTFS-3G\UserMapping"
echo "# (id generated from /etc/machine-id)"
echo
echo "# root group"
echo ":0:S-1-5-21-$domain-512"
echo "# root user"
echo "0::S-1-5-21-$domain-500"
echo "# user group"
echo ":users:S-1-5-21-$domain-513"
echo ":100:S-1-5-21-$domain-513"
echo "# generic template"
echo "::S-1-5-21-$domain-10000"Last edited by progandy (2014-03-31 16:16:19)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline