How do I set up proper drive permissions (fstab reamins static despite all mounts)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I set up proper drive permissions (fstab reamins static despite all mounts)
Hi!
I know similar quesion has been asked many times, and I even looked up these threads, however none of that works for me...
I am running KNOPPIX (Debian) insalled on my HD, rather than from a CD. I had managed to overcome most set up issues. I am total Linux newb, and got it on my machine as a learning experience. So far so good -- Linux is freedom, but freedom comes at a steep price, oh well.
I have an issue setting up permissions to the drives I mount, epsecially my ipod. I had mounted from sda2, and can access is freely as root, however as a user it is unaccessible. Morevover, when I copy folders form ipod into user accessible areas, these folders are restricted as well. I tried re-mounting it with "users" operator, which supposed to make disk aviabale to everyone, but it didnt work. I tried chwon it to the user profile, but it didnt work. Moreover, when I hover mouse in Konqueror, it syas that it is owned by user profile, and has same permissions as other drives (when it obviously isnt).
The problem is solidified by my fstab thinking it's a constant or somehting -- it has references to ipod beforre I mounted it properly, and these references did not change after I mounted it. My fstab entry for ipod looks something like this:
Could you post the output of the /etc/mtab file or the output of the 'mount' command. The mount command with no options will display how devices are mounted. I use the uid=<user name> and gid=<user name> successfully on usb drives and they work for me.
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
/dev/pts on /dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid624) on /mnt/auto type autofs (rw,fd=4,pgrp=624,minproto=2,maxproto=4)
/dev/hdc1 on /mnt/hdc1 type reiserfs (rw,nosuid,nodev)
/dev/sda2 on /ipod type vfat (rw,nosuid,nodev)
guess I gotta re-cmount my hda1 heh... anyhow sda2(ipod) had "noexec" parameter, but I removed it and it dodnt make any difference... should I put it back in... all setting seem to be corrent, at least according to other websites... I'm so lost...
Two Ideas. Maybe the users option is mutually exclusive with the guid option. First try taking out the users from the /etc/fstab entry. If that doesn't work. Put the users option back in. Since the users option should allow you to unmount and remount the ipod yourself, put
umount /mnt/ipod
mount /mnt/ipod
in your .bashrc file.
If that doesn't help, one thing you have different from my usb entries is that you are mounting on the root directory. Try changing it to /mnt/ipod.
I have the same problem. Trying to allow all to read write to a 14G vfat partition. I've edited etc/fstab line for my partition (/dev/hda7)
"/dev/hda7 /mnt/media vfat rw,exec,users,umask=000"
the mount command outputs this:
"/dev/hda3 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda1 on /windows/C type vfat (rw)
/dev/hdd on /media/cdrom type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda7 on /mnt/media type vfat (rw,uid=000,gid=000)"
So what's the deal?? It SHOULD allow read/writefor all, but no.
(4 times I try to write this mess., enabled cookie ................ [ OK ] )
Now,
Hi,
I had the same pbm.
Just enter a user manager (kuser for kde, webmin ...)
Had the user to the ssh group ( the one you xant him to access to the other ( su ...),
or test with other groups
it's just because ur one don't have the rights...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.