Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-13-2004, 12:19 PM
|
#1
|
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537
Rep:
|
User mount ??
Is there a way to allow a normal user to mount and unmount a cd rom or a nfs share?? Im asking this from a slacware10 point of view . Main reason for this question is i can never mount a nfs share as root in something other then read only ??
|
|
|
11-13-2004, 12:48 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You will need to put the "user" option for that mount in /etc/fstab
|
|
|
11-13-2004, 01:04 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537
Original Poster
Rep:
|
mount
Ok testing what you said right now with the cd rom on the system.
Adding user to the fstab for the cd rom
this is what the entry looks like
------------------------------------------
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro,user 0 0 \
saved the /etc/fstab and rebooted for good mesure.
upon reboot
user@compname# mount /dev/cdrom
mount: must be superuser to use mount
any ideas now ??
|
|
|
11-13-2004, 01:28 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You will need to make mount suid root:
chmod o+s /bin/mount
|
|
|
11-13-2004, 02:00 PM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537
Original Poster
Rep:
|
OK
here are the commands
--------------------------------------------------------
user@compname# su
root@compname# chmod o+s /bin/mount
root@compname# exit
user@compname# mount /dev/cdrom
mount: must be superuser to use mount
----------------------------------------------------------------
Damnit damnit damnit damnit damnit why the hell does slackware not allow a user to *#(#ing use mount? 
|
|
|
11-13-2004, 02:04 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Sorry - it's my mistake, drop the "o" from the chmod command and use "u":
chmod u+s /bin/mount
You should get this from an "ls -l":
-rwsr-xr-x 1 root bin 68868 Aug 26 2003 /bin/mount*
Last edited by david_ross; 11-13-2004 at 02:06 PM.
|
|
|
11-13-2004, 02:12 PM
|
#7
|
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537
Original Poster
Rep:
|
AHHH HA
that worked.  thanks
But on another note why is this not the default permission for the mount program. And as obious as this would seam A: because normally a system admin wouldent want users to be able to mount. my answer would be 2 things
1. theres an option you can remove or add to fstab "user"
2. You need to mount nfs exports as a user because root is auto blocked.
Again i rehash my other question
Why in gods name does slackware not make mount with this option. Why put somone though the tramma of figuring out the permission?
|
|
|
11-13-2004, 02:50 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Well I'm on slack 9.1 and that is the default. Perhaps Pat just made a mistake or decided to change it for some reason in 10.
|
|
|
11-13-2004, 08:40 PM
|
#9
|
Member
Registered: Mar 2004
Location: Berlinsville
Distribution: Slackware/Fedora
Posts: 103
Rep:
|
well, if you take the owner option out of /etc/fstab, then you would have saved
some time, but of course there is probably some kind of backgire to that.
|
|
|
All times are GMT -5. The time now is 04:27 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|