LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-15-2005, 04:08 AM   #1
anhvuvnn
LQ Newbie
 
Registered: Sep 2005
Posts: 9

Rep: Reputation: 0
could user (not is root) mount ?


i have user permission in a Linux system , can i mount any device if i not a root ? pls help me !!!!
 
Old 12-15-2005, 04:18 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Usually only root is allowed to mount devices, but also the setup of your /etc/fstab may enable users to mount devices.
 
Old 12-15-2005, 09:29 AM   #3
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
Alternatively you could configure sudo to give your user the ability to run the mount command.

Then stick an
Code:
alias mount="sudo mount"
in your .bashrc file and away you go.
 
Old 12-15-2005, 11:28 AM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
read the 'user' and/or 'users' options in 'man mount'
 
Old 12-15-2005, 06:06 PM   #5
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
The method in which I have used is the "chmod u+s" to both the /usr/bin/mount and /usr/bin/umount (this may change depending on what distribution you are using). I know many will call this unsafe to allow all users to mount devices but I feel if you have a locked down system this will be safe enough.
 
Old 12-15-2005, 07:58 PM   #6
bye
LQ Newbie
 
Registered: Dec 2005
Location: peking
Posts: 6

Rep: Reputation: 0
set "sudo" configuration ,you can have some permission like root's.
 
Old 12-18-2005, 07:50 PM   #7
anhvuvnn
LQ Newbie
 
Registered: Sep 2005
Posts: 9

Original Poster
Rep: Reputation: 0
thanks for all ur supporting !!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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
cannot mount CD ROM on non-root user rsumbeling Linux - Security 4 12-04-2004 01:09 AM
can't mount CD ROM on non-root user rsumbeling Linux - Software 3 12-03-2004 01:13 PM
Mount Cd as non-root user rayyen Linux - Newbie 4 08-31-2003 09:21 AM
Can't mount as non-root user thepenguinhippy Linux - Newbie 4 07-30-2003 03:32 PM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration