Solved

Setting permissions on CIFS mount....

Posted on 2009-04-08
3
791 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

How to Backup Ubuntu to Amazon S3

CloudBerry Backup offers automatic cloud backup and restoration for Linux. It has both GUI and command line interface (CLI) ensuring its flexibility in use. Find out more

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now