LinuxQuestions.org
Visit Jeremy's Blog.
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 06-28-2011, 11:02 PM   #1
prol
Member
 
Registered: May 2008
Posts: 47

Rep: Reputation: 18
is it possible to mount as a normal user?


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.

(using 13.37)
 
Old 06-28-2011, 11:15 PM   #2
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Rep: Reputation: 18
have a look at pmount from sbo.
 
Old 06-28-2011, 11:34 PM   #3
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
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.
 
Old 06-29-2011, 12:34 AM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Mountlo: software to mount files (any file that the "mount" utility supports), on a Linux system, without the need to have root/admin privileges.

download: http://sourceforge.net/projects/fuse/files/mountlo/


cheers,
 
Old 06-29-2011, 12:53 AM   #5
joghi
Member
 
Registered: Jun 2011
Distribution: Slackware64 15.0 Slackware 14.2 Slackware64 14.2
Posts: 33

Rep: Reputation: Disabled
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

Last edited by joghi; 06-29-2011 at 02:17 AM.
 
Old 06-29-2011, 12:55 AM   #6
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
If you installed XFCE, you can use the tool "exo-mount"
http://www.slackwiki.org/Mount_with_...m_command_line
 
Old 06-29-2011, 01:19 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
bashmount, that uses udisks (and so works in a consolekit session), looks fine too

Last edited by ponce; 06-29-2011 at 01:25 AM.
 
1 members found this post helpful.
Old 06-29-2011, 01:51 AM   #8
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 294

Rep: Reputation: 39
Just add your username to plugdev group and it will mount automatically.
 
Old 06-29-2011, 02:18 AM   #9
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
You can also use sudo - put the mount entry in the sudoers file with the appropriate syntax.
 
Old 06-29-2011, 12:39 PM   #10
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
hi

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
 
Old 06-29-2011, 12:53 PM   #11
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 354
Blog Entries: 1

Rep: Reputation: Disabled
Install the "fuse" package in slackware/l.

http://slackware.osuosl.org/slackwar...8.5-i486-1.txz
http://slackware.osuosl.org/slackwar...5-x86_64-1.txz
 
Old 06-29-2011, 06:50 PM   #12
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by captain_sensible View Post
hi

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".

Brian
 
Old 07-01-2011, 05:28 AM   #13
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
Brian

ok cheers

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
 
Old 07-01-2011, 10:08 AM   #14
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
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.

Brian
 
Old 07-01-2011, 12:30 PM   #15
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
ok cheers Brian


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 .......
 
  


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
how to mount usb as normal user??? ArthurHuang Linux - Hardware 2 05-06-2009 07:46 AM
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 03:09 AM
cannot mount as normal user dave`2005 Linux - Newbie 3 03-16-2006 07:36 PM
Normal user being able to mount cdrom dave`2005 Slackware 6 10-21-2005 05:21 PM
normal user can mount? vacilus Linux - Software 1 12-22-2004 11:39 AM

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

All times are GMT -5. The time now is 04:57 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