Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop mac malware memory monitor motherboard music network printer problem ram registry router server slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
root privileges to the user

Reply  
Thread Tools
vschitturi's Avatar
Member with 276 posts.
 
Join Date: Mar 2008
17-Jul-2008, 10:25 AM #1
Question root privileges to the user
hi,

In Windows we can give the administrator privileges to the user which we create locally like that can we give the root privileges to the user which we create in linux locally. Could anyone please help me.

Awaiting for the reply.

Thank you for your valuable time.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
17-Jul-2008, 11:08 AM #2
Hi vschitturi,

One thing you must be careful about is making sure that the person to whom you are giving root priviledges is an experienced user in whom you can trust.

That said, one way you can bestow root privileges is to create a new group - one that is commonly used is wheel, and make the user you have in mind a member of that group. Another group to consider vs wheel is admin.

Essentially, the wheel/admin group would have a GID of 0, so that members of it would be allowed to issue the su command while other users may not.

Read up on the man page for su.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
vschitturi's Avatar
Member with 276 posts.
 
Join Date: Mar 2008
17-Jul-2008, 12:17 PM #3
hi lotus,

Thank you for giving me the solution i understood that i have to create wheel and admin group u said something like GID i dont have idea regarding that could u please explain me in detail so that i can complete my task by today.

Awaiting for your reply.

Thank you for your valuable time.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
17-Jul-2008, 04:28 PM #4
Hi vschitturi,

You may not have to create either group as at least one of them may already exist. Just add the name of the user account (for the user) that you will give access to become a super user (root account user) to the /etc/group file.

You must add the user to the group from a root account. Look at the man page for the useradd command to find out how to add the name of the user account to the group - i.e. the group must already exist. Read the other man pages referenced at the bottom of the man page.

-- Tom


-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
vschitturi's Avatar
Member with 276 posts.
 
Join Date: Mar 2008
17-Jul-2008, 05:34 PM #5
hi lotus,

If you dont mind can you give me the location of the man page where can i get it so that i can get my work done.

Awaiting for your reply.

Thank You for your valauble time.
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
18-Jul-2008, 01:58 AM #6
What's wrong with just using SUDO
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
18-Jul-2008, 08:01 AM #7
Hi vschitturi,

The man command is a separate command, so when I said in my previous post "Look at the man page for the useradd command..." - it meant to issue the following command:
$ man useradd

-- Tom
vschitturi's Avatar
Member with 276 posts.
 
Join Date: Mar 2008
18-Jul-2008, 11:24 AM #8
hi Lotus and Squashman,

Thank You very much for your support.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:56 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.