LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-27-2004, 11:22 AM   #1
caps_phisto
Member
 
Registered: Sep 2004
Location: NH
Distribution: FC6, FC1-4, RH9, Gentoo 2006.0/1, Slackware 10.1/2,11, Vector SOHO 5.0.1
Posts: 237

Rep: Reputation: 30
Adding a group to a group?


I was just wondering how I might add a group to a group in Linux.

Thanks in advance.
 
Old 12-27-2004, 11:31 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
And in case anyone has an answer: why would you want to do that? (just curious)

[edit]
Did you mean adding a group to the /etc/group file? Just wondering
[/edit]

Last edited by JunctaJuvant; 12-27-2004 at 11:34 AM.
 
Old 12-27-2004, 11:40 AM   #3
caps_phisto
Member
 
Registered: Sep 2004
Location: NH
Distribution: FC6, FC1-4, RH9, Gentoo 2006.0/1, Slackware 10.1/2,11, Vector SOHO 5.0.1
Posts: 237

Original Poster
Rep: Reputation: 30
I am running a website with forum that allows emailing through a web interface. I am using sendmail and as usual I am using the clientmqueue directory. This default permissions to this directory are drwxrwx--- smmsp smmsp. If I leave this default I get an error in my mail log about apache not having full permissions to the clientmqueue directory.

Rather than changing the permissions on the direcotry to drwxrwxrwx and allowing the world to access the directory, I would rather just add the "apache" group to the "smmsp" group. This would allow me to keep the default drwxrwx--- and give apache the permissions it needs.

Thanks in advance.
 
Old 12-27-2004, 12:22 PM   #4
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
I'm no expert, so I am a bit curious myself, but I thought you could only add users to groups. AFAIK, users are listed in /etc/passwd (such as "mysql", "adm", "root", maybe "apache" too?).
 
Old 12-27-2004, 12:59 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I don't think you can add a group to a group. In any case, you're probably best off just calling the normal mail sending facility (mail or sendmail) from rhw PHP or Perl code on your Web site and not mucking directly with the mail queue.
 
  


Reply



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
after adding user to group peter72 Linux - General 2 08-01-2005 10:17 AM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
Adding a group fuelinjection Linux - General 3 12-07-2003 07:14 AM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM

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

All times are GMT -5. The time now is 01: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
Open Source Consulting | Domain Registration