Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to control access to a file

Status
Not open for further replies.

smadarapu

Programmer
Mar 30, 2005
1
US
How can I control access to a particular file in CVS. I would like to restrict write access to all the users to a particular file.

Thanks in Advance
 
Hey,

the easiest way will be to create a new usergroup (groupadd newgroup) and put you into that group. Now you have to do
'chgrp newgroup /path/file' and 'chmod 770 /path/file'.
This should exclude other users to get access to the file.

Be careful. The file is not hidden from other users, because they have access to the folder. You have to do the same with the folder to avoid that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top