LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-20-2007, 08:20 PM   #1
Andruha
LQ Newbie
 
Registered: Sep 2004
Location: Odessa, Ukraine
Distribution: WindowsXP, Windows2003, Slackware 10
Posts: 18

Rep: Reputation: 0
howto: user access to automounted fstab devices


the short question is:
what solution would it be to make automatically mounted fstab entries accessible by users?

the long one contains a whole story :)

I use Slackware 10 as an alternative OS and in my case root can easily access
all of the following automounted devices, including FAT32/NTFS partitions, but neither can user.
It would have been perfect for me to hide all the mounting tasks from users, so that logged in user (or some specific user for better security?) would be able to access permanent logical drives (just like it is in windows)

I have the following in my fstab:
Code:
/dev/hdb9        swap             swap        defaults         0   0
/dev/hdb1        /                ext2        defaults         1   1
/dev/hdb5        /mnt/drv-d       vfat        defaults         1   0
/dev/hdb6        /mnt/drv-e       vfat        defaults         1   0
/dev/hdb7        /mnt/drv-f       vfat        defaults         1   0
/dev/hdb8        /mnt/drv-t       ntfs        ro               1   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
otherwise it's difficult (as for me) to follow 'life without root' approach because my "life" (work files, video, music, etc) is mostly on other logical partitions and drives, i.e. physically not in linux ext2 partition mounted as / (or at /home or something alike).

As a typical windows user (tm) ;) I used to organize my drives/partitions as follows:
  • OS primary partition: this is limited only to OS-specific data and hardly OS-coupled programs that would not survive OS-reinstall. In case of crash I can easily reuse this partition with a new installation.
  • logical maintenance partition: system tools to check, fix or reinstall windows, drive utilities and so on.
  • a set of logical drives with any other files: programs that do not depend hardly on particular windows OS type and installation-made registry entries, documents, video, music, etc.
It makes it easy for both working with multiple Win-OS (I currently use XP and 2003 w/o virtualization) and reinstalling them if necessary (though, there is nothing easy in reinstalling linux, i.e. currently I don't have much expertise in separating 'uninteresting' system files from 'important' user's ones)

So, I welcome any help in following this approach together with using slack10.
Thanks for your help.
 
Old 03-20-2007, 09:36 PM   #2
nflenz
Member
 
Registered: Feb 2006
Distribution: CRUX 2.4
Posts: 96

Rep: Reputation: 18
Quote:
Originally Posted by Andruha
the short question is:
what solution would it be to make automatically mounted fstab entries accessible by users?
Try changing the permissions for the mount points

Code:
# chmod 777 /mnt/drv-[d-f]
 
Old 03-20-2007, 10:51 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,462
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Try changing your mount options. Something like the following line will auto-mount the partition and allow full read/write access by all users.
Code:
/dev/hdb5        /mnt/drv-d       vfat        rw,defaults,umask=0         1   0
You can change it to allow only certain groups (with the 'gid' option) or certain users (with the 'uid' option).

Last edited by rkelsen; 03-20-2007 at 10:55 PM.
 
Old 03-21-2007, 04:52 AM   #4
Andruha
LQ Newbie
 
Registered: Sep 2004
Location: Odessa, Ukraine
Distribution: WindowsXP, Windows2003, Slackware 10
Posts: 18

Original Poster
Rep: Reputation: 0
I beg your pardon, it seems like all my question had been already answered elsewhere.
I should have performed a better search before posting.
Anyway, thank you for replies.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Only root access to automounted USB drive denis1314 Linux - Software 11 07-19-2005 09:01 AM
Granting user access to devices like a jumpdrive tleadley Fedora - Installation 0 02-17-2005 07:02 PM
I can't access my windows drive as a user, only as root...fstab problems? DiZASTiX Slackware 14 12-29-2004 08:54 PM
FSTAB entry for normal user to access windows partition rmanocha Linux - Software 4 01-29-2004 04:33 PM
normal user access devices N|ghtwo|f Linux - Software 4 07-22-2003 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration