LinuxQuestions.org
Help answer threads with 0 replies.
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 08-07-2009, 09:18 AM   #1
redray8
LQ Newbie
 
Registered: Apr 2003
Distribution: slackware 8.1
Posts: 5

Rep: Reputation: 0
mount as non-root for devices not in fstab


Is there any way to use mount/umount as non-root user in a terminal for devices that I don't have an entry set up in fstab?

Thanks in advance!

ray
 
Old 08-07-2009, 09:58 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
It Depends of the filesystem. For example, it is possible for FAT volumes using the options gid and umask like below.

mount -o gid=users,umask=007 /dev/xxx /mnt/xxx

hope this help.
 
Old 08-07-2009, 10:10 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Try to user 'nouser' option in /etc/fstab

<drive to mount> <where to mount> <filesystem> defaults,nouser 1 1


Thanks
 
Old 08-07-2009, 01:43 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
I don't think comments 2 and 3 understood the question; alternatively, *I* don't understand the question :-)

You probably want pmount or halrv.
 
Old 08-07-2009, 05:15 PM   #5
botnet
Member
 
Registered: May 2009
Posts: 158

Rep: Reputation: 40
alias mount="sudo mount"
alias umount="sudo umount"
echo "%wheel ALL=(ALL) NOPASSWD: /bin/mount,/bin/umount" | sudo tee -a /etc/sudoers


This would probably be frowned upon by some, but it works, just change wheel to whatever your users group is.
 
Old 08-07-2009, 05:54 PM   #6
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Quote:
Originally Posted by rworkman View Post
...You probably want pmount or halrv.
I've used pmount, but hadn't heard of halrv. There's a git repo:
Code:
git clone git://github.com/rg3/halrv.git
with a SlackBuild script included. Nice.
 
  


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 give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
devices in /etc/fstab don't auto mount at startup : jabka Linux - General 3 08-23-2006 03:28 PM
Mount Devices as user other than root Jimi Dean Slackware 4 06-18-2006 06:24 AM
Editing fstab to mount devices? apachedude SUSE / openSUSE 7 12-03-2004 04:35 AM
how to mount devices not shown in /ect/fstab??? len Slackware 2 12-19-2003 05:01 PM

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

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