User Creation

Taking care of your Linux box.
if
Battalion Quarter Master Havaldaar
Posts: 224
Joined: Tue Aug 13, 2002 12:52 pm
Location: Islamabad
Contact:

User Creation

Postby if » Tue Jan 21, 2003 9:48 am

Aslam-o-Aliakum,

I want to create a user a RedHat 8.0 Server machine which has all rights (other than root) ... kindly help me in this regard.
if u find anything which shows my lack of knowledge,
please guide me... thx
------------------------------------
Aslam-o-Aliakum-Wa-Rahmatullah-Wa-Barakatuhu
------------------------------------
if

AsaifullahK
Cadet
Posts: 11
Joined: Fri Jan 17, 2003 11:38 pm
Location: Earth > Asia > Pakistan > Karachi
Contact:

Postby AsaifullahK » Thu Jan 23, 2003 1:14 pm

You must have the "sudo" package installed.
type :
< ls /var/log/messages | egrep -i 'sudo' >
to see if you have it or not.

Once ascertained that sudo is installed,
edit /etc/sudoers

and add the following line :

USERNAME (ALL) = (ALL) NOPASSWD:ALL
where USERNAME = the username of the user you want to give all rights to. By typing 'sudo' before executing any root commands, your user will be able to execute commands with root privileges.
Regards,
Ali Saifullah Khan

Hail The Penguin !!!

fawad
Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL
Contact:

Postby fawad » Fri Jan 24, 2003 10:13 am

I guess if you want the user to have all access, add him to the root group. Never dunn it myself as I think root sucks. I prefer sudo.

if
Battalion Quarter Master Havaldaar
Posts: 224
Joined: Tue Aug 13, 2002 12:52 pm
Location: Islamabad
Contact:

Postby if » Sun Jan 26, 2003 8:21 pm

Aslam-o-Aliakum,

purpose of creating a user with maximum access other than root... i've user = if ... with all group access / membership on server but when i log through if and want to run most of common commands (eg. ifconfig etc.)... computer said thiere is no command like this and directly go to /sbin directory where the ifconfig file is located but it doesn't run... so that's way... and one of my friend who also newbie like me... he want to run freeciv game (client) but it doesn't run even from (root or any other logon)... kindly do help me in this regard.

and from where i can get this package sudo... thx for helping...
if u find anything which shows my lack of knowledge,

please guide me... thx

------------------------------------

Aslam-o-Aliakum-Wa-Rahmatullah-Wa-Barakatuhu

------------------------------------

if

AsaifullahK
Cadet
Posts: 11
Joined: Fri Jan 17, 2003 11:38 pm
Location: Earth > Asia > Pakistan > Karachi
Contact:

Postby AsaifullahK » Sun Jan 26, 2003 9:57 pm

my previous post was based exactly on this issue.
you must have "root" privs. to execute root commands, and not necessarily be allowed if you're in the group 'root'.

install sudo:
1. download it from http://www.courtesan.com/sudo/dist/sudo-1.6.6.tar.gz
2. run 'tar -xvzf sudo-1.6.6.tar.gz' in the directory where you downloaded it.
3. cd into the directory.
4. run the following commands in the specified order :
./configure > make > su root > make install

Now you have sudo installed.
edit /etc/sudoers with your favourite text-editor,
and add the following line :
if (ALL) = (ALL) NOPASSWD:ALL
to allow user 'if' to execute all root commands prepended with 'sudo'
Regards,

Ali Saifullah Khan



Hail The Penguin !!!


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest