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 - 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 01-25-2010, 03:49 PM   #1
ruyterb
LQ Newbie
 
Registered: Jan 2010
Posts: 12

Rep: Reputation: 0
mounting restricted share for all users


Hi,

I have a NAS on which I created a share with CIFS that has restricted access (that is: you need a username and password to access it). The reason is that I don't want any user in the network to mount this share.

On one computer I have Bacula installed to run backups. I would Bacula to store the backups on the NAS share. So I mount the share in fstab. Works fine but the share directory is not read+write for all users but only for the root (since the mount was done for the root).

The line in fstab:
\\readynas\backup /readynas cifs user,rw,password=thePassword,username=bacula,umask=017 0 0

How can I have Bacula (running as user Bacula) get read+write access to the directory representing the share?

I tried to remove access control to the share but the directory representing the mount remains readonly...

Any suggestions? I searched the forum but could not find an answer...
 
Old 01-25-2010, 04:20 PM   #2
ruyterb
LQ Newbie
 
Registered: Jan 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Found a way to work with it.
The line in fstab is now:
\\readynas\backup /media/readynas cifs password=myPassword,fmask=017,dmask=017,username=bacula 0 0

Now any user can read+write in the share folder.
Should be fine...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting A Smb Share At Login - For Domain Users nm2588 Linux - Networking 3 12-07-2006 10:05 AM
Hiding Folders from restricted users nowhere.elysium Linux - Security 3 11-17-2005 01:46 PM
Multiple users mounting NFS share Vincent_Vega Linux - Networking 4 08-01-2004 10:04 AM
having users setting up server on restricted ports GŠutama Linux - Networking 6 06-15-2003 01:20 PM
restricted share listings in samba domain unolinuxguru Linux - Software 2 02-08-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 PM.

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