LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-14-2008, 09:17 PM   #1
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
how to set the new user created right as admins in linux 7.3 ?


Does anyone know the command to set user right as adminfrom SSH ?
 
Old 04-15-2008, 04:06 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by melvinong View Post
Does anyone know the command to set user right as admin from SSH ?
If you need an unprivileged user to access commands reserved for root then please use "sudo". And by "Linux 7.3" I sincerely hope you don't mean "Red Hat Linux 7.3" because it is deprecated and should not be used anymore if attached to a network unless it is tightly controlled.
 
Old 04-15-2008, 07:45 AM   #3
lepht
Member
 
Registered: Jan 2008
Location: Silver City slums
Distribution: Fedora 11 Leonidas
Posts: 75

Rep: Reputation: 16
you don't need to run as the admin, buddy =] that's what makes Linux more secure than Windows.

to run commands as the admin individually, do this:

su - (type the root password)
visudo

[you'll need to know how to use vim; if you don't, open a new terminal window and type "vimtutor".] add this line to the end of the file that opens:

%[you] ALL=(ALL) ALL

now you'll be able to use the command sudo in front of commands, and type in your own password to run them. that way you never have to login as root. so if you wanted to make coffee and only root could do it, you could type

sudo make_coffee
(your password)

and you'd be able to do it. some commands you'll have to use 'su -' for instead of sudo, but you should avoid it whenever possible, seeing as it's kind of a security risk. hope this helps

L
 
  


Reply


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
Set group on files as they are created gatsby Linux - Newbie 1 02-25-2008 04:53 PM
How to set permission of a file created by java? emanresu Linux - General 4 01-23-2008 01:54 AM
Domain Admins not Local ADmins - Samba 3.0.7 dlublink Linux - Networking 2 03-01-2005 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration