![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Jason on Saturday June 09, @11:26PMfrom the god-mode-is-good dept. If you have ever wanted to know how to give a standard user root privileges then this post is for you. Like so many things in FreeBSD it's simple, you just have to know how to do it. By default the root account in FreeBSD is only allowed to login from the console. The reason I give my user account root access is that I sometimes like to login to my unix box remotely to perform administrative tasks. I login remotely as my regular user account then change to root with the su (substitute user) command. All you need to do is add your regular user account to the wheel group. Login as root and change to the /etc directory. Using your favorite editor, such as vi or ee edit the group file. Login: root Password: ******* # cd /etc # ee group Change this: wheel:*:0:root To this: wheel:*:0:root,someuser Save the file and exit. Okay. Now that you have completed that task, you can now login as your regular user account and change to root with the su command. There are two ways to do this, one will give you root access but will not execute root's .profile (dot profile). The other will give root access and execute the .profile. I use the later so that I will have all the file paths setup for the root account. This is done with the hyphen (-)switch. Login as your regualar user and issue the su command: $ su - Password: ******* <--(enter the root password) # <--(you now have root privileges) To learn more about the substitute user command su, check the man pages. man su < | >
|
|
||||||||||||||||||
|
||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |