You are not logged in.
Pages: 1
Hi,
As a root, I mount my USB stick with: mount /dev/sda1 /mnt/stick
Prior to mounting the /mnt/stick directory has these permissions:
drwxrwxrwx 2 panu root
After connecting the stick and mounting, the permissions are:
drxwr-xr-x 7 root root
I can read it as a user but write only with root. After mounting the permissions can't be changed with chmod.
1. How could I write it as user?
2. Do I need to add something to fstab? currently I have nothing concerning the usb stick.
Thanks for any help!
Offline
You should add a line to fstab simillar to
/dev/sda1 /mnt/stick vfat rw,user,noauto 0 0
Now you will be able to mount your usb stick AS USER using
mount /mnt/stick
Offline
if the above doesn't work try adding umask=0000 before 0 0.
Offline
ok,
I appended the fstab as pressh suggested, and rebooted. Nothing changed: can still only mount as root and can only write as root.
then added the umask command so that the fstab line looks like this:
/dev/sda1 /mnt/stick rw,user,noauto,umask=0000 0 0
Is this what you meant, Penguin? I rebooted, but still no change, and the permissions before and after the mounting are as I described in the first post.
Could it be something with groups? My user belongs to audio, storage, video and optical. Is there some other groups it should belong to?
Offline
/dev/sda1 /mnt/stick rw,user,noauto,umask=0000 0 0
and vfat is there also after the /mnt/stick bit of course..
Offline
/dev/sda1 /mnt/stick rw,user,noauto,umask=0000 0 0
Is this what you meant, Penguin?
Yes that's what he meant.
Don't think it can be a problem with groups, others than that you can perhaps have a mistype in the fstab line (e.g. wrote 'users' instead of 'user')
You actually mount using
mount /mnt/stick
????
because when you use
mount /dev/sda1 /mnt/stick
/etc/fstab will not be used, and so you'll not be able to mount as user
Offline
You actually mount using
mount /mnt/stick
????
because when you use
mount /dev/sda1 /mnt/stick
/etc/fstab will not be used, and so you'll not be able to mount as user
Dankjewel! That's what it was..
Offline
Pages: 1