LinuxQuestions.org
Visit Jeremy's Blog.
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 06-04-2007, 03:38 AM   #1
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
How to create group with admin priviledges?


How to create group (namely as 'admins') with admin priviledges?

anyone there can help?
 
Old 06-04-2007, 04:18 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You mean you want a bunch of people able to login as root but under their own names?

Actually, the easiest way to let a bunch of people do admin stuff is just to add them to the wheel group and define their privileges in sudoers.

Otherwise, I think you have to be specific about what you are trying to achieve.
 
Old 06-04-2007, 04:59 AM   #3
melvinong
Member
 
Registered: May 2007
Posts: 47

Original Poster
Rep: Reputation: 15
group "admins" point to admin user priviledge

Quote:
Originally Posted by Simon Bridge
You mean you want a bunch of people able to login as root but under their own names?

Actually, the easiest way to let a bunch of people do admin stuff is just to add them to the wheel group and define their privileges in sudoers.

Otherwise, I think you have to be specific about what you are trying to achieve.

actually I try to create the new group namely as "admins" and i would like this "admins" have the admin user priviledge.

example : I have create 10 user acc....user 1 to user 10.

I want 5 of the users is under group "admins", and this group should have the right like adm priviledge.

any idea u can provide?
 
Old 06-04-2007, 06:19 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use sudo achieve what you are trying to do.
 
Old 06-04-2007, 06:22 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
What are these things you are calling "the right like adm priviledge"? You are not being specific enough.

What's wrong with the suggestion already made? Vis:
Add these users to the "wheel" group and edit your /etc/sudoers file accordingly.

Note:
The "admin" in linux is called "root". Why not just tell them the root password?

Have you tried using your distro user administration tools?

eg. In Ubuntu I go system > administration > users and groups ... from there U select the user I want to modify and click properties ... then select the "user privileges" tab and check the "administer system" box.
 
Old 06-04-2007, 09:06 PM   #6
melvinong
Member
 
Registered: May 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge
What are these things you are calling "the right like adm priviledge"? You are not being specific enough.

What's wrong with the suggestion already made? Vis:
Add these users to the "wheel" group and edit your /etc/sudoers file accordingly.

Note:
The "admin" in linux is called "root". Why not just tell them the root password?

Have you tried using your distro user administration tools?

eg. In Ubuntu I go system > administration > users and groups ... from there U select the user I want to modify and click properties ... then select the "user privileges" tab and check the "administer system" box.

i m using fedora 6, can i use this command?

"net rpc rights grant "MIDEARTH\Admins"
 
Old 06-05-2007, 06:00 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
http://www.catb.org/~esr/faqs/smart-...s.html#answers
 
Old 06-08-2007, 04:31 AM   #8
melvinong
Member
 
Registered: May 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Simon Bridge
Simon Bridge,
I have go to the URL page u given and try to create the group "admins", but it still same....after i add ed those user to that group "admins", those user still don't have the admin privilege.

may i know how to point to that group "admins" to have the admin privilege, so those user which under group "admins" can do some installation software in the client machines.
 
Old 06-08-2007, 10:35 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you have created the group and added users to it, the next step is to run visudo and give the admin group the privilege to run all commands or a limited set of commands using sudo.
 
Old 06-08-2007, 09:58 PM   #10
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
You could use visudo, uncomment the WHEEL entry and then add these users to the WHEEL group. Saves you a step.
 
  


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
How to create users with admin priviledges? cucolin@ Ubuntu 13 08-23-2006 04:08 PM
Domain Admin group crab_com Linux - Networking 2 03-20-2006 06:15 AM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-12-2005 11:16 PM
New group for special priviledges linmix Linux - Newbie 4 01-06-2005 01:44 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM

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

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