LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-06-2003, 07:12 PM   #1
dogn00dles
Member
 
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101

Rep: Reputation: 15
Changing a user's default group


I have made my root web server directory writable only by users in a certain group. I was having some trouble writing HTML files to it, before realizing that all of them were created with my default "user" group. While researching perm's on the 'net I stumbled across a command that changed the default group of any files I made, before forgetting it :-[...if anyone could tell me how this is done, or just knows the name of the command so I could man it, it would be really cool. Thanks in advance!

G'day,

--dogn00dles
 
Old 07-06-2003, 08:00 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Sharing a directory of files

Quote:
chmod g+rwxs sharedir

Last edited by zmedico; 07-06-2003 at 08:04 PM.
 
Old 07-06-2003, 08:20 PM   #3
dogn00dles
Member
 
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks for the link, I'm sure some of it will come in handy later. Perhaps I should have phrased my question differently. What I need to do is change the default group of any files a user creates to something other than users. Danke.
 
Old 07-07-2003, 05:29 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Is it newgrp?

It wont change the default group, but will create a new shell with the user's uid and the new group's gid.

Last edited by nxny; 07-07-2003 at 05:33 PM.
 
Old 07-09-2003, 03:59 PM   #5
dogn00dles
Member
 
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101

Original Poster
Rep: Reputation: 15
Aha! Thanks for the replies. For anyone with a similar problem, it was "usermod -G <group> <user>"
 
  


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
How do I change a user's primary group? Akhran Linux - Newbie 4 03-19-2010 08:54 PM
Changing a user's group at login depending on the time of day Steve2001 Linux - General 10 10-11-2004 03:29 AM
Script to set different quota depending on User's Group ID TechNett Programming 6 08-09-2004 02:45 PM
Changing user's group? orange400 Linux - General 2 06-18-2004 04:30 AM
changing user's default ftp home location GraemeK Linux - Networking 0 12-31-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:20 AM.

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