Quote:
Originally Posted by Allamgir
Oh I see. I wasn't using fstab at all and I mounted the device manually from /dev/sdc1 to /mnt/tmp using sudo. I just thought that normal users would be able to read even when mounted by root. I'm so used to automounting utilities. I guess I could just get used to su'ing to root and accessing the files that way.
|
No, if all users could access devices mounted by root, not a lot would be left of the security system. There's more options on that matter than I could describe here, but editing fstab is a very good place to start.
Be sure to read the fstab man page, but in short this is the syntax:
Code:
Device Mountpoint filesystem Options dump check
#Example:
/dev/sda1 /mnt/hd auto user,noauto 0 0
And now any regular user who's member of the plugdev group can mount that particular device under that particular mountpoint. You can fine tune this more, but this'll get you started. If not for anything else, it would keep you from having to be root to access a drive that you need as user.
In fact, all your automounters respect /etc/fstab, so learning to edit that gives you more flexibility on the automounting frontier as well. If there's a 'special' device you always want mounted under a certain directory, it is possible as well. It makes scripting easier for one thing.
Quote:
Originally Posted by Allamgir
I really think I'm going to like slackware
|
And you'll have more fun than you really wanted ;-)