Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-12-2011, 04:55 PM   #1
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
How would you add a user to /etc/group when username is tom.willis...

The period(.) in 'tom.willis' seems to be throwing off the /etc/group file. Is there any way around this? I tried quotes, and escaping the '.' but to no avail.

Last edited by trist007; 03-12-2011 at 04:56 PM.
Old 03-12-2011, 05:12 PM   #2
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
You created the user with useradd, I assume. You can alter the group membership with usermod.
Old 03-12-2011, 05:50 PM   #3
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
No I just modified the /etc/passwd, and it works great. I tried usermod -G apache tom.willis. It adds it in /etc/group but when I tried and execute php as that user I get a permission error on the file /var/lib/php since only root and apache group and create files related to session state in there. I could change the path to /tmp in the php.ini but I'd rather leave it as it is. php works fine if I add a different user to the group, but for tom.willis, it's tricky.

I could add OTHER write permissions to the /var/lib/php but I'd rather not.

Last edited by trist007; 03-12-2011 at 05:52 PM.


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 to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
How to add user into group. gardenair Linux - Newbie 11 02-17-2011 08:59 AM
how to add a user to a new group? emanresu Linux - Newbie 5 11-21-2005 08:18 AM
add user to the group ashley75 Linux - General 4 03-30-2005 02:42 PM
how to add a user to a certain group? feetyouwell Linux - Software 2 01-13-2004 11:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration