LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 15
mount network drive fstab/umask?


Some background info...

I set up a script for my boss to run that mounted a Windows network shared drive. I set up sudo for it to work. The problem is when the script is run the directories and files are owned by root and he doesn't write access.


There has to be a way to set up the system so only he can mount the drive and then only he has access to the files. I was playing with the fstab file. I read some stuff on it, but I didn't fully understand it so I was blindly trying different things.

Has anyone done something similar or does anyone have any ideas at all?

Thanks in advance,
Matt
 
Old 02-24-2004, 12:32 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
here would be an example of how to put an NFS volume in the fstab file, i'm sure the entry for a windows share would be similar

192.168.36.1:/mnt/burn1 /mnt/burn1 nfs defaults 0 0
it would probably look like
192.168.36.1:share smbfs defaults 0 0
 
Old 02-24-2004, 01:45 PM   #3
J.Q. Monkey
Member
 
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Original Poster
Rep: Reputation: 15
But I only want one user to be able to mount the network drive....
 
Old 02-24-2004, 01:49 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm, that would have something to do with permissions, perhaps if only that user had the username and password for the samba share and you gave him a shell script that mounts it?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount ext3 hard drive with umask=0 trpn Linux - General 6 09-13-2008 08:41 PM
Changing Fstab in ubuntu to mount vfat drive mikeymorgan Linux - Newbie 13 06-23-2005 08:50 AM
Ho do you use fstab-sync to mount a drive? ginda Linux - Newbie 3 03-15-2005 11:05 AM
fstab network mount linuxzouk Linux - Networking 4 05-15-2004 11:05 AM
fstab hard drive mount eastj1974 Linux - Newbie 2 07-05-2003 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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