Can only access USB external drive when in ROOT user
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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.
Can only access USB external drive when in ROOT user
Hi,
I had to reinstall Mandriva 2006 (official) ((not free)) a second time to get access to my USB external drives. I will not let any profile I make access those drives, only when I log into ROOT account.
is there a fix for this?
or any suggestions about how I can manipulate my created accounts so I can grant them access using GROUPS?
There are two reasons for this I think. Furst is if you choose "High" or more security level during installation of Mandriva. In this case only root can have access to additional drives and windows disks. Try to choose lower security level - Standard. There is a warning during installation about this.
Second is to enable access to your devices (partittions) for ordinary users. This can be done on Mandriva control center -> Mount points -> Partitions -> Toggle to expert mode -> Then click on needed partiton -> Unmount -> Options and then check option "umask=0". Then mount your device and everything should be OK.
Hi, don't know if any of the above has worked, but here are somethings you may try.
Have you got your USB drvice to mount in fstab? If so then is it in read only mode, look at fstab and if it sayd RO change it to RW.
Secondly the directory you mount the device to, did you create it with the root account, if so you need to chage the permissions with chmod while the device is not mounted. to give everyone read write acess chmod +777 /mnt/whatever.
I know I had a similer problem with a usb pen and this sorted it.
There are two reasons for this I think. Furst is if you choose "High" or more security level during installation of Mandriva. In this case only root can have access to additional drives and windows disks. Try to choose lower security level - Standard. There is a warning during installation about this.
Second is to enable access to your devices (partittions) for ordinary users. This can be done on Mandriva control center -> Mount points -> Partitions -> Toggle to expert mode -> Then click on needed partiton -> Unmount -> Options and then check option "umask=0". Then mount your device and everything should be OK.
Regards,
Valentin
This worked for me!!!! I was all over this forum trying to get my Maxtor Onetouch III to work and the instructions above here worked. Thanks Valentin!!!
By the way I am using Mandriva 2007 Official Power Pack (the one you pay for).
Last edited by mr805newbie; 12-08-2006 at 02:11 AM.
There are two reasons for this I think. Furst is if you choose "High" or more security level during installation of Mandriva. In this case only root can have access to additional drives and windows disks. Try to choose lower security level - Standard. There is a warning during installation about this.
Second is to enable access to your devices (partittions) for ordinary users. This can be done on Mandriva control center -> Mount points -> Partitions -> Toggle to expert mode -> Then click on needed partiton -> Unmount -> Options and then check option "umask=0". Then mount your device and everything should be OK.
Why can't everything in Mandriva be this straight forward?
i am having a similar kind of problem. In my case, the security level is set to "standard". When even i moung the disk, the disks do not show in "Drives" on the desktop. When i open console and do su, i can access the mounted drives. but when as a normal user i try it , on console or on graphical interface, i get the message that i do not have permission to access mnt. I tried changing the file permissions on /mnt and it worked. but as soon as i closed the root terminal and tried again , same problem. the permissions on /mnt are back to what they were before.. which is
Did you even Read above first!- have you tried these?
Quote:
Second is to enable access to your devices (partittions) for ordinary users. This can be done on Mandriva control center -> Mount points -> Partitions -> Toggle to expert mode -> Then click on needed partiton -> Unmount -> Options and then check option "umask=0". Then mount your device and everything should be OK.
Have you got your USB drvice to mount in fstab? If so then is it in read only mode, look at fstab and if it sayd RO change it to RW.
Quote:
Secondly the directory you mount the device to, did you create it with the root account, if so you need to chage the permissions with chmod while the device is not mounted. to give everyone read write acess chmod +777 /mnt/whatever.
i had tried to above mentioned solution before posting and it did not work for me.. However, the other thread that u mentioned on the mandrake forum, it did work and the problem is now some what solved
THANKS
just one small additional question
Is there a way we can specify a generic setting for all USB drives that i plug in the system, for example, a friend on mine brought a usb drive (40 gb) over and we tried to access it but there were problems.. The folder (/mnt/mydrive ) where mydrive is the label of the disk in windows, is created automatically but the access permisions are set so that only root can access it. Since i dont know the name of folder before hand, how can i provide settings for it in fstab ??
If i add this line
would it work if the attached harddisk has more than one partition....?
because at the moment, it creates a different folder for each partition??
So do we have to know the volume label and number of partitions before a user can mount it? or is there a way to make the automount utility set the permissions for users at well?
THANKS for the help
OKAY here is another bizare occurance.....
after i un mounted the Temp folder. Changed the file permissions to 777, then tried to mount it again....and strangely the now the permission of the mnt folder are set to allow access only to root. IT has happened before. Sometimes when i plug in a new drive, the permissions of mnt are changed so that only root can access it....
i would really appreciate any hint into what is going on here since i dont have any clue....
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
Quote:
There are two reasons for this I think. Furst is if you choose "High" or more security level during installation of Mandriva. In this case only root can have access to additional drives and windows disks
It is worth mentioning that one can also play with sudo (visudo) and grant usage of mount to selected user(s) with root privilege.
It is an alternative, maybe not the best one, but can be appropriate in some cases
Soory for continuting to bother you, but ...
there is a rule in the permission that says that the /mnt/ is owned by root and the permissions are set to be 755 ( this this gives other users the ablity to read the /mnt folder)
in addition i have added the rule that that changes the security permissions to /mnt/ to 777.
But still the problem is not solved... Is there some tool that can be used to log when and why the security permissions on /mnt/ are changing...
Boy, it sure is a lot of bother on linux to simply let users mount their usb drives...lol
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.