LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2014, 02:48 AM   #1
arunkumarp27
LQ Newbie
 
Registered: Jul 2014
Location: Chennai,India
Distribution: Ubuntu,redhat
Posts: 3

Rep: Reputation: Disabled
how to assign write permissions to CVSROOT/admin/arun folder for particular cvsuser


Hi all,
Any one help me how to assign write permission for a folder inside CVSROOT in Ubuntu OS(eg:i need to assign cvs user "arunkumarp27" to write only the /cvsroot/admin/arun not to write any other folders in CVSROOT,the same user should have only read permission to other folders in cvsroot).
Is it possible to do this, if yes what are the steps to make it possible.Kindly help me with this its urgent.

I'm sorry, if my sentence forming is worst.

Last edited by arunkumarp27; 07-26-2014 at 02:49 AM.
 
Old 07-29-2014, 09:39 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

this can be done with standard unix permissions. Eg.
Code:
addgroup cvsadmin
addmod -G cvsadmin arunkumarp27
chown :cvsadmin /cvsroot/admin/arun
chmod g+w /cvsroot/admin/arun
In the above example the commands issued do the following:

- create a new group
- put the user in the new group it
- change the directory group ownership
- make the directory group writable

Evo2.
 
Old 07-30-2014, 08:58 AM   #3
arunkumarp27
LQ Newbie
 
Registered: Jul 2014
Location: Chennai,India
Distribution: Ubuntu,redhat
Posts: 3

Original Poster
Rep: Reputation: Disabled
how to assign write permissions to CVSROOT/admin/arun folder for particular cvsuser

Hi evo2,
Thanks for you reply evo2.i have another doubt if i add another user to cvsadmin he will also get the same privileges,its correct.
But i need is, if i add "rajiv05" user to cvsadmin group he should not get write permission for this folder /cvsroot/admin/arun.
Rajiv05 should get access to write /cvsroot/project and /cvsroot/prog.

For this i need to create another new group and add rajiv05 in that new group or any other option is there by keeping rajiv05 in cvsadmin group itself and assign any other permission for those two folders.
 
Old 07-31-2014, 01:03 AM   #4
arunkumarp27
LQ Newbie
 
Registered: Jul 2014
Location: Chennai,India
Distribution: Ubuntu,redhat
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

this can be done with standard unix permissions. Eg.
Code:
addgroup cvsadmin
addmod -G cvsadmin arunkumarp27
chown :cvsadmin /cvsroot/admin/arun
chmod g+w /cvsroot/admin/arun
In the above example the commands issued do the following:

- create a new group
- put the user in the new group it
- change the directory group ownership
- make the directory group writable

Evo2.
Evo2 .
I am getting error at second step of "addmod -G cvsadmin arunkumarp27"
error i an getting is "addmod command not found"
 
Old 07-31-2014, 01:37 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

sorry, typo, that should be usermod, not addmod.

Evo2.
 
Old 07-31-2014, 01:39 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by evo2 View Post
sorry, typo, that should be usermod, not addmod.
Opps, and you'll probably also want to used the -a flag with that. Eg
Code:
usermod -a -G cvsadmin arunkumarp27
Please check the man page to confirm.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
create ftp server and assign read and write permissions aksharb Linux - Server 1 08-01-2013 04:12 PM
Write permissions to a specific user on a folder gsvsmanyam Linux - Newbie 3 01-25-2011 08:44 AM
CVS Access error: cannot open /usr/local/cvsroot/CVSROOT/config: Permission denied singh.lovelesh Linux - Server 3 11-23-2009 12:04 PM
cannot assign write permissions to sda1 flygirl Linux - Newbie 2 08-25-2007 11:14 PM
Write permissions to a hole folder Mega Man X Linux - General 3 07-12-2003 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:28 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