Page 1 of 1

Write permissions on fatx as ordinary user

Posted: Thu Jan 27, 2005 12:33 am
by MetalMickey
I cant seem to see a manual, FAQ or previous post with a clear answer on this one.

I cant write to my f drive as an ordinary user. How do I change the permissions so that its possible? Ive tried chmoding the directories and the mount point as root but I get the error "operation not permitted".

Any help would be appreciated, as i dont want to be running p2p apps as root.

Posted: Thu Jan 27, 2005 12:36 am
by ShALLaX
Definitely in the Home manual (/etc/fstab) see the UMASK settings.

Posted: Thu Jan 27, 2005 12:48 am
by MetalMickey
I must be blind, its right there. Thanks mate.

Posted: Thu Jan 27, 2005 1:26 am
by MetalMickey
Ok, I found the info in an old news post of yours, but it says that I should have the line in fstab set up as follows, which I have.

/dev/hda50 /mnt/fatx/e fatx defaults,umask=0000 0 0
/dev/hda55 /mnt/fatx/f fatx defaults,umask=0000 0 0

Funnily enough, the line is the same for /mnt/fatx/e, and i have full permissions there as a user:-

drwxrwxrwx 7 root root 16384 Jan 1 1970 e
drwxr-xr-x 9 root root 16384 Jan 1 1970 f

I cant see the manual entry you referred to either :(

Posted: Thu Jan 27, 2005 8:21 am
by nobspangle
try doing

Code: Select all

chmod 777 /mnt/fatx/f

Posted: Thu Jan 27, 2005 1:10 pm
by MetalMickey
Xbox root # ls -l /mnt/fatx/
...
drwxr-xr-x 9 root root 16384 Jan 1 1970 f

Xbox root # chmod 777 /mnt/fatx/f

Seems to work, but then if i do
Xbox root # ls -l /mnt/fatx/

Permissions are exactly the same:
drwxr-xr-x 9 root root 16384 Jan 1 1970 f

Tried removing the umask altogether and rebooting, same result.

Posted: Thu Jan 27, 2005 3:44 pm
by vplayer
Hi,

where in the f drive are you trying to write. What does you ls -l /mnt/fatx/ look like. Does both e and f show 755 permisisons.

Posted: Thu Jan 27, 2005 4:25 pm
by MetalMickey
where in the f drive are you trying to write.
Tried to write in the root, and in a nested folder in the root. Also tried to create directories in the root.
What does you ls -l /mnt/fatx/ look like. Does both e and f show 755 permisisons.
drwxrwxrwx 7 root root 16384 Jan 1 1970 e
drwxr-xr-x 9 root root 16384 Jan 1 1970 f

E shows 777 permission, f does not even after chmoding the directory 777 as root. Same UMASK settings, as posted above.

Posted: Thu Jan 27, 2005 5:08 pm
by ShALLaX
Did you read that you cannot give user write permission to the partition in which Gentoox is installed to.

I.e. if you have Gentoox installed to E:, ONLY root can write to E... if you have Gentoox on F:.. ONLY root can write to F:. This is for safety reasons (so users cant delete your rootfs), if you want to change it edit the initrd.gz/linuxrc file and add the appropriate umask where it mounts the rootfs.

Posted: Thu Jan 27, 2005 8:22 pm
by MetalMickey
Ah, that makes sense.

Think ill just use my apps with sudo in that case.

Posted: Tue Jan 23, 2007 10:19 pm
by speedfrenzy
hi!

i got the same problem like MetalMickey, my rootfs is on partition f and i want to have write access on f as normal user........

i edit the linuxrc in this section

Code: Select all

if [ $INSTALLTYPE = "f-drive" ]; then
   mount -n -t fatx /dev/ide/host0/bus0/target0/lun0/part55 /newroot
   swapon /newroot/swap
   mount -n -o loop,notail /newroot/rootfs /rootfs
   if [ $? -ne 0 ]; then
      echo "Looks like you're not using reiserfs - removing notail"
      mount -n -o loop /newroot/rootfs /rootfs
   fi
fi
to

Code: Select all

mount -n -o loop,notail,umask=000 /newroot/rootfs /rootfs
and

Code: Select all

mount -n -o loop,umask=000 /newroot/rootfs /rootfs
, but that ends up in "invalid option -> kernel panic". also

Code: Select all

mount -n -o loop,notail,rw /newroot/rootfs /rootfs
and

Code: Select all

mount -n -o loop,rw /newroot/rootfs /rootfs
works, but does not have the effect, i want.

does anyone know, how to edit the linuxrc file right???