LinuxQuestions.org
Register a domain and help support LQ
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 04-19-2010, 11:37 AM   #1
garpo
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
ssh + force user and group on mkdir


Hi!, i new to linux! and im trying to implements mercurial repositories using ssh access.
The problem is that if a login via ssh with the user "userA" all file upload vi that user are created with the owner: userA:userA and i need to use the group of the parent directory... is that posible ?
For example:
repos ( root:repo)
-> project1 ( root:repoPrj1 )
-> file1 ( userA:usearA ) -> here i want userA:repoPrj1
The userA al ready belongs to repoPrj 1 group.

thanks!
 
Old 04-19-2010, 01:16 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ,

And yes, it is; just give the directory a SETGID flag.

Code:
chmod g+s dir

Cheers,
Tink
 
Old 04-19-2010, 02:28 PM   #3
garpo
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
Hi, welcome to LQ,

And yes, it is; just give the directory a SETGID flag.

Code:
chmod g+s dir

Cheers,
Tink
Thankssss!!! It works!!!
 
  


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
Restrict SSH to Group & User Hammad101 Linux - Security 2 10-16-2007 09:12 AM
mkdir with diff group ryedunn Linux - Newbie 2 02-22-2007 12:36 PM
Samba force user, group doesn't return expected results tisource Linux - Software 1 12-13-2005 01:07 AM
new user and group ssh Longinus Linux - Newbie 3 07-11-2004 03:21 AM
Force user to be in a group to use su? jrbush82 Linux - Security 2 06-03-2004 10:48 PM


All times are GMT -5. The time now is 10:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration