LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-10-2004, 12:02 PM   #1
J.Q. Monkey
Member
 
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Rep: Reputation: 15
giving normal users mount capabilites


Is it possbile to give a normal user on the system the ability to mount a drive. I want my boss to be able to mount a network share on startup that requires a password. I know it could be done in etc/fstab file, but he won't want to have his password available to me in a file like that.
 
Old 02-10-2004, 12:11 PM   #2
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I don't think you need to put the password in fstab, simply specify the mount as 'user,noauto' and he'll give the password when mounting...
 
Old 02-10-2004, 12:25 PM   #3
J.Q. Monkey
Member
 
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Original Poster
Rep: Reputation: 15
I want it to be setup so when he logs on to the system it is there ready for him to go without him having to do anything.
 
Old 02-10-2004, 03:34 PM   #4
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I think fstab only needs to be readable by root. If you are root, and he doesn't want you to know the pw, then it can't be saved on the pc and thus has to be retyped at every mount. No way out of this.
However, if you want the password to be saved in a script but not in fstab, you can use "sudo" to allow him (and only him) to run this script as root. Beware that sudo may introduce vulnerabilities in your system if not carefully configured.
 
Old 02-11-2004, 10:53 AM   #5
J.Q. Monkey
Member
 
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Original Poster
Rep: Reputation: 15
Thats what I was hoping for, thanks.
 
  


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
giving users permission to mount a CD ricardo_ok Slackware 4 11-03-2005 12:58 PM
Giving users their own little virtual server... murr4y Linux - Security 2 06-17-2005 07:26 AM
Normal users reading regular NTFS mount. MagusYilie Linux - Newbie 2 04-20-2005 11:07 PM
Giving users printing priority amfoster Linux - General 0 10-05-2004 06:35 PM
giving users permission to mount dai Linux - General 2 08-02-2002 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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