LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-29-2009, 04:36 PM   #1
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
Usermod expert, help needed.


i have 3 existing sites, MainSite TestSite and FileSite. Main and Test need to be apart of the FileSite group to be able to read/write/delete files.

usermod -a -G MainSite,TestSite FileSite
is that right, for giving access to FileSite?
 
Old 03-29-2009, 04:40 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
The syntax would be fine if you weren't trying to add groups
to a group ... this only works for users, and groups can't be
members of groups.
 
Old 03-29-2009, 05:29 PM   #3
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
The syntax would be fine if you weren't trying to add groups
to a group ... this only works for users, and groups can't be
members of groups.
this is how my setup is.
MainSite.com is part of MainSite group and user MainSite, so the group and user have the same name.

what i'm trying to do is allow MainSite & TestSite users to be apart of the FileSite group so I can have proper permission for unlinking files via php coding
 
Old 03-29-2009, 05:40 PM   #4
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
In that case it should work just fine; the only thing to bear in mind is
that you'll also need to make the directories group-writeable.



Cheers,
Tink
 
Old 03-29-2009, 05:52 PM   #5
acctman
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
In that case it should work just fine; the only thing to bear in mind is
that you'll also need to make the directories group-writeable.



Cheers,
Tink
what command would I use to do that, and would i apply that to the FileSite directory (/home/filesite/public_html/) correct?
 
Old 03-29-2009, 06:54 PM   #6
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
chmod -R g+rwX /home/filesite/public_html/
 
  


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
lm_sensors expert needed! Fezar Linux - Newbie 5 03-19-2007 03:17 PM
expert help needed with bash and bc karistouf Programming 5 06-22-2005 12:55 AM
X11 Expert Needed hilltop*Tech Linux - Hardware 4 06-10-2005 09:11 AM
bash expert help needed illtbagu Programming 15 10-05-2004 08:15 PM
Security Expert needed Lloydlec Linux - Security 1 04-27-2004 11:45 AM


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