LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-27-2007, 12:56 PM   #1
chrille112
LQ Newbie
 
Registered: Apr 2007
Posts: 22

Rep: Reputation: 15
Stop using root, want to add a main account


I have a server hosting about 50 domains. Each domain is owned by a user, and each user has an own group, for example:

Code:
drwx--x--x    9 reklamsk      reklamsk         4096 Apr 24 12:06 reklamsk/
Today I'm logging in with root to make it easy to switch between the different users (they are all mine), but it doesn't feel good. I want to add a new user, that has permission to access all home dirs.

How do I do that?

The server is being administrated with cPanel.
 
Old 04-27-2007, 01:19 PM   #2
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
I'm wondering if you have the correct forum, as this doesn't appear to be security-related.
 
Old 04-27-2007, 01:20 PM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
You have a few options:

* put your 'main' user in the same group as the other site's owner

* Use different logins

* log in as unprivileged user and sudo when needed

I also have lots of sites with C-panel (not by choice), and I usually log in with my own account and sudo or su -c 'command' when needed.
 
Old 04-27-2007, 01:51 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well i guess you simply want to do the first option as above...

useradd adminbob -G domain1,domain2,domain2

etc...
 
  


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
Add items to the main menu abenavar Linux - Newbie 3 04-02-2007 06:50 PM
help me - removed main user account in kubuntu manishsingh4u Ubuntu 4 04-04-2006 12:41 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
add my user account to the root group konabumm Linux - Newbie 2 08-01-2003 11:44 AM

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

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