Solved

Setting permissions on CIFS mount....

Posted on 2009-04-08
3
798 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Make the most of your online learning experience.
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, f…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

626 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