SlackwareThis Forum is for the discussion of Slackware 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.
By default, entries in /etc/fstab are set to nouser. This means only root can mount them. To mount as a regular user you need to edit this file. Login as root, then edit the fourth column of the relevant entry in /etc/fstab to read user instead of nouser. This file is re-read upon startup so after editing you either have to restart to have the amendments take affect or else you can reload fstab with the mount -a command.
I can't mount anything without being root.
I want to use mount command as a simple user...how can I make mount with simple user?
Quote:
Originally Posted by strycnine
I can't mount anything without being root.
I want to use mount command as a simple user...how can I make mount with simple user?
Normally, ordinary users cannot use the mount command unless a corresponding entry is found on /etc/fstab. For example here is my entry corresponding of my windows partition.
ro means "read-only"
users means "ordinary users can mount the filesystem"
nls=... "for the encoding in the filenames"
uid=1000,gid=100 to make the file on the windows partition belonging to me (I have the uid 1000 and the gid 100 corresponding to the group "user"
noauto "Do not mount the filesystem automatically, only when requested"
If you want to mount arbitrary filesystem as an ordinary user, you will have to configure sudo (a good introduction to sudo can be found on: http://www.gentoo.org/doc/en/sudo-guide.xml). But be aware that a clever user having the possibility to issue arbitrary mount command could use it to become root, even if you ensure that a users can only mount a filesystem he owns (a way to do this would be to create a file containing a ext2 filesytem with some of the files in it having the suid and then mount this filesystem)
I've changed my fstab entry for /mntcdrom to 'noauto,user,umask=0', and I still can't mount unless root. I've never bothered in the past, but it would be nice.
I've changed my fstab entry for /mntcdrom to 'noauto,user,umask=0', and I still can't mount unless root. I've never bothered in the past, but it would be nice.
I don't think so. Any filesystem must be mounted in order to get access to the device.
Are you aware of what you said there?
Yes I'm quite aware, I ment without having to mount it >>by him self<<, because the ''auto-magic'' does the actual mount .
This did't work very well in the past , that is why I wrote an tool by my self (had to go thru the whole nightmare of mounting, scripting, learning, fidling, testing...) and that all because *real* user are lazy typers and hate to type mount /mnt/cdrom any time a new cd is inserted and even more hate to type umount /mnt/cdrom...
You know:
User != Admin
not even for extremly large values of User
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.