LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2009, 05:26 AM   #1
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Rep: Reputation: 33
Thumbs up Admin mode


Hi,

When i log into the linux system, I am going to ordinary user mode. What is the command to change my mode to administrator mode. I am the administrator as well. I know the password of Admin too. Please help me.
 
Old 01-29-2009, 05:30 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
From a terminal do
Code:
su -
then digit the admin (root) password when prompted. The "-" stats for "inherit the root's environment upon switching to root user". An advice: never login as root in the X system (that is from the graphical login) otherwise you will open some holes in the security wall of your system.
 
Old 01-29-2009, 05:35 AM   #3
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thanks

Thanks boss
 
Old 01-29-2009, 06:18 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
On some distro's, you can select an administrative program in the menu (such as SuSE's yast) and you will be prompted for a password.

Using sudo for each command may be better than using "su -". If you use Ubuntu, the root account is disabled and "su -" won't work anyway.

Please put your distribution in your user profile. That can solicit more distro specific responses instead of generic ones.
For example, if it is SuSE, someone can advise you on which YaST2 module to use. Or to use an rc<service> script instead of the service command. Distro's vary in how services are started with either "System V" style or BSD style. Knowing your distro can prevent getting advice for a different distro.
 
Old 01-29-2009, 08:46 AM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Hi, if you are referring to it as Administrator mode, you might want to be very very careful with root, it can be very dangerous to the machine as you can easily run a command like "rm -rf /" that will almost certainly break a linux system if it doesn't warn/stop you (similar to format C: in windows/DOS).

Quote:
Originally Posted by jschiwal View Post
Using sudo for each command may be better than using "su -". If you use Ubuntu, the root account is disabled and "su -" won't work anyway.
I would bet their is a back door somewhere, excluding single user mode... something probably like "sudo /bin/sh"... but I dunno, I don't use ubuntu (their anti CLI ways gives me the creeps =/) but I'd probably figure out a way if I had to use it.
 
Old 01-29-2009, 09:05 AM   #6
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thanks

Thanks all of you but I need to do my homework. So it requires me to be in administrator mode.
1) I have to find all of setuid files using find command
2) is using sudo command something.....
 
Old 01-29-2009, 09:23 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You can enable the root (admin) account in Ubuntu:

sudo passwd root

You will still be asked for your regular user password when opening various utilities from the GUI.
 
Old 01-29-2009, 09:05 PM   #8
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thank you All.
 
Old 01-29-2009, 09:05 PM   #9
palisetty_suman
Member
 
Registered: Feb 2007
Location: TX, USA
Distribution: fedora
Posts: 191

Original Poster
Rep: Reputation: 33
Thank you all of you my friends.
 
  


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
sys admin vs network admin sulekha Linux - General 5 01-11-2009 06:03 AM
2K admin now RHEL4 admin (I have some questions) wilsryan Red Hat 5 01-30-2006 01:18 PM
KDE 3.4.1 Login Manager won't enter admin mode rgingels Debian 12 11-09-2005 04:20 PM
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 08:55 AM
How can I change display mode from character mode to graph mode wuzhong Linux - Hardware 1 08-08-2004 10:36 AM


All times are GMT -5. The time now is 12:43 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