Solved

Setting permissions on CIFS mount....

Posted on 2009-04-08
3
792 Views
Last Modified: 2013-12-09
I am using mount.cifs in CentOS to connect to a windows share. I have the credentials for the cifs share in a separate file on the linux box. That share mounts fine using the credentials....I can read and write. What I want to do is change the permissions on the mount point (/mnt/share1) so that only root and users in the root group can access the share. Right now any user can get into the share. Is there an easy way to do this? chown does not work....
0
Comment
Question by:concordit
3 Comments
 
LVL 7

Accepted Solution

by:
Morne Lategan earned 500 total points
ID: 24104674
Have a look at this page:

http://www.samba.org/samba/docs/man/manpages/mount.cifs.8.html

mount -t cifs //machine/share /mnt/mountpoint -ouser=windowsuser,password=windowspassword,uid=localowner,gid=localgroup,file_mode=770,dir_mode=770

Will cause localowner and localgroup to be able to read and write to it, but no-one else.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question