PDA

View Full Version : can only access flashdrive as root user - help!



redss
05-31-2004, 07:19 PM
How can I access my USB flashdrive as the knoppix user instead of root?

Under knoppix 3.3, I create a directory with knoppix as owner & group, all permissions +rwx. But when I mount the usb drive, it changes the directory owner & group to root, and denies read/write access to knoppix.

As root, when I try to change the owner back to knoppix, I get "operation not permitted". Chmod +rwx on the directory (as root) doesnt work.

BTW here is the last line of /etc/fstab (not changed by me):
/dev/sda1 /usb vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0

Help!

esher2292
05-31-2004, 07:42 PM
I'm not sure what to do exactly, but it has to do with the word users. I think...It may also have to do with the umask....


esher2292

fingers99
06-01-2004, 04:12 AM
I think what you have should work but my line reads:

/dev/sda1 /mnt/sda1 vfat noauto,users,exec,sync,umask=000 0 0

(You can forget the sync entry for a simple flash drive.)

Can you make sure (use kuser IYL) that knoppix is a member of the usb and disk groups?

Cuddles
06-01-2004, 02:05 PM
Is it me, or am I just spacing out on this, correct me if I am wrong...

Wouldn't "knoppix" also need to be in the group for "users" ? I think I had to add my user into that group, or at least ensure that it was included. ( I know it was some "group", either user, or users, or something like that? )

Again, I may be way outta line on this one, just trying to help...
Ms. Cuddles

redss
06-02-2004, 05:32 AM
ok, I found the problem - I had modified the knoppix.sh to mount the usb drive automatically which screwed it up. When I took that out, it worked!