[SOLVED] is it possible to mount as a normal user?
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.
I just want to be able to access and modify the files on my usb drive as a normal user. The mount command works perfectly as root but then the files that I end up copying to my home folder can only be modified as root. I only use a window manager and use just bash for file management. I just want to be able to it through the command line.
File managers such as Thunar automatically mount usb drives if you are a member of the appropriate group. I believe that you can use chmod recursively if the files copied from the thumb drive belong to root.
You also can have a look at your /etc/fstab. Just add a line with your usb-device (e.g. /dev/sdb) and a suitable mount point (e.g. /mnt/memory). As options use 'noauto,user' . This should enable you to mount your usb-drive as a normal user with the command 'mount /mnt/memory'. Depending on the kind of file-system on the usb drive you may have to change permissions with chmod once. A good introduction to /etc/fstab is found at http://www.tuxfiles.org/linuxhelp/fstab.html
i just installed 13.37 for the first time, and on putting a pendrive into a usb slot, the pendrive icon would not even show on the desk top.
i have added my user name to etc/group next to plug dev. now the pendrive icon shows up but will not mount. If I log in as root, there is no problem and I can access pendrive by clicking on its icon on desktop. Guess its a permission thing any ideas?
Also I noted there is another file etc/group- which seems to have another plugdev entry; do I have to edit that file as well?
i'm using xfce, since trying kde it was too slow on my box
i just installed 13.37 for the first time, and on putting a pendrive into a usb slot, the pendrive icon would not even show on the desk top.
i have added my user name to etc/group next to plug dev. now the pendrive icon shows up but will not mount. If I log in as root, there is no problem and I can access pendrive by clicking on its icon on desktop. Guess its a permission thing any ideas?
Also I noted there is another file etc/group- which seems to have another plugdev entry; do I have to edit that file as well?
/etc/group~ is a backup file created by your text editor when you edited /etc/group.
You can add users to groups with the command: "gpasswd -a user group".
well I already added my user name by editing etc/group ; also as a normal user at the command
line using su> password # mount /dev/sdb1 -t vfat /media/pendrive I mounted my pendrive after
getting dev info using fdisk -l and creating folder pendrive in media.
I clicked on pendrive icon on desktop and it opened! so thats something useful; so I guess
my real question is- how I do I easily get the pendrive to automount ? by editing fstab ? mstab ?
can anyone point me in the right direction - I have had a look at man automount , & I can-not-a read-a the lingo! ps thinking of changing my user to dyslexic-raving-luddite
In thunar, the xfce file manager, go to Edit/Preferences, choose the Advanced tab and click on Enable Volume Management. Then you can click on configure to enable/disable automounting, etc. I don't remember whether you need to install the xfce-mount-plugin to do this, but if so you can find it at slackbuilds.org.
i've just ran the script #adduser to add another user,after logging in as this user
my pendrive is mounting automatically, and also I can now power down as a noraml user which I couldn't before , so I can only assume either I messed up in the first place ( I did play with usr/sbin/adduser) or editing /etc/group created a partial user permission.Anyway what I wanted to do has been achieved so .......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.