LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-28-2003, 10:44 PM   #1
Megos
LQ Newbie
 
Registered: Jun 2003
Posts: 14

Rep: Reputation: 0
Administrator


How do you become the administrator? I have searched everywhere...I type in the root password, but all that does is let me into the Control Panel. I need administrative access. I am the owner, but it says I'm not. I gave myself all groups, but I still can't do what I need to do. BTW, I have Mandrake 9.1
 
Old 06-28-2003, 10:50 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Typing "su -" into a console will let you become root for that session.

There ARE threads on this. Searching "administrator" will give you results, as I answered one two days ago.
 
Old 06-29-2003, 08:29 PM   #3
deanrantala
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1/slack 9.0/BSD
Posts: 30

Rep: Reputation: 15
On mandrake 9.1...

Type su at the prompt.
Enter password.
type drakconf
Now you should be able to do whatever you want.
 
Old 06-29-2003, 08:32 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Re: Administrator

Quote:
Originally posted by Megos
... but I still can't do what I need to do. BTW, I have Mandrake 9.1
What do you need to do that you cannot?

FYI: Administrator is out
root is in

Cool
 
Old 06-10-2007, 09:11 AM   #5
kalebud
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
"su"

I tried typing su into the console, along with the password and nada,

root@localhost michael]# su
> I did type in the password, but nothing confirmed

[root@localhost michael]# drakconf
[root@localhost michael]# su
[root@localhost michael]# /dev/hda0
bash: /dev/hda0: No such file or directory
[root@localhost michael]# /dev/hda1
bash: /dev/hda1: Permission denied
 
Old 06-10-2007, 09:49 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by kalebud
I tried typing su into the console, along with the password and nada,

root@localhost michael]# su
> I did type in the password, but nothing confirmed

[root@localhost michael]# drakconf
[root@localhost michael]# su
[root@localhost michael]# /dev/hda0
bash: /dev/hda0: No such file or directory
[root@localhost michael]# /dev/hda1
bash: /dev/hda1: Permission denied
This says you were already root when you entered su....

type "exit" or "su <username>" to go back to your regular account. The prompt should begin with <username>.
Switching to root should go thusly:
mherring@1[~]$ su
Password:
root@1[mherring]#
("root" at the beginning---and "#" instead of "$"---says that su was successful)
 
Old 06-10-2007, 12:17 PM   #7
jaymoney
Member
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87

Rep: Reputation: 16
Quote:
Originally Posted by kalebud
I tried typing su into the console, along with the password and nada,

root@localhost michael]# su
> I did type in the password, but nothing confirmed

[root@localhost michael]# drakconf
[root@localhost michael]# su
[root@localhost michael]# /dev/hda0
bash: /dev/hda0: No such file or directory
[root@localhost michael]# /dev/hda1
bash: /dev/hda1: Permission denied
the problem is you can't just type in /dev/hda1
if you want to access that directory you need to do
Code:
cd /dev/hda1
 
Old 06-10-2007, 01:39 PM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by jaymoney
the problem is you can't just type in /dev/hda1
if you want to access that directory you need to do
Code:
cd /dev/hda1
You don't cd into files. You'd need to mount the partition first and then cd to wherever you mounted it.
 
Old 06-10-2007, 05:22 PM   #9
alexander_bosakov
Member
 
Registered: Mar 2006
Location: Plovdiv, Bulgaria
Distribution: OpenSuse 11.3
Posts: 55

Rep: Reputation: 15
Well, lets clear the things a bit:
1) "/dev/hda1" is the device file corresponding to your first hard drive partition. This is the file, from which you can get your partition content in raw form, byte by byte. It's not a directory, to where you can "cd" (ChangeDirectory, BTW, this is where the command came from). It's also not a program, which can be run. So, being not a program, it is not marked with the "x" permission bit. You probably know, in linux, the executables are not marked with the ".exe" extension, rather they are marked with the "execute" permission bit. Since "/dev/hda1" does not have execution permissions set, the shell gives an error "Permission denied".Anyway, typing "/dev/hda1" at the prompt is senseless.
2) Becoming an administrator: as you probably know, each file and process have user and group associated (well, I'm simplifying a little here). If the process permissions match those of a file, the process has access to the file. To be an administrator, means runnin g a process, with the user "root" (UID=0 (UserID)) which is a special privileged user, that has access to all the system. Usually, a process inherits the permissions of its parent process. So, if you started a shell as root, the commands that you execute within this shell also have root privileges. The command "su", is of a type so called "SetUID" program - it executes as root regardless to which user belongs the process who invoked it. So, "su" checks your password, and if it matches, "su" - running as root, starts new shell process, also running as root. And the commands which you type in the shell running as root, also execute as root - as example - "drakconf". You can also run gui programs that way, however, it's better to use another "su"-like program, specially for GUI programs. Under KDE, eg., it's called "kdesu". For example, on my desktop, I have a shortcut to command "kdesu -c konqueror", which asks me for the root password and then starts the file manager as administrator with access to all files in the system, similarly to the WinNT's "Run as ...".
3) BTW, I'm also on Mandriva (started with 10.1, upgraded through 10.2, 2006, 2007.0. As mentioned above, with default config, the "#" prompt indicates that you are already root. The regular users prompt is "$". Typing "drakconf" at "$" prompt won't work, but at "#" is fine. "drakconf" is the Madriva's (ex Mandrake) control panel, and in order to have write access to the files containing system-wide settings, it must be run as root.
 
Old 06-11-2007, 01:03 PM   #10
kalebud
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
Ok that sounds good I'll give a try and see if I can find the raw data, with this infomation I should be able to partition the hd - rite? We shall see. I'm also reading the linux bible to get more understanding.
Thank you for your reply
 
Old 06-11-2007, 01:08 PM   #11
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Your hard disk will have at least one partition on it already, obviously. You can run "fdisk -l" (that's a lowercase L) to list all the partitions on all disks (or "fdisk -l /dev/hda" to list the partitions on /dev/hda). If you want to shrink/expand/move an existing partition to create free space, you'll need to use something like Parted.
 
Old 06-11-2007, 01:09 PM   #12
kalebud
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
I was wondering do the upgrades load automatically over writing like windows or add another folder like mac? Are they available. I did try downloading mandrivia spring from their website, but got nothing.
 
Old 06-11-2007, 11:55 PM   #13
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Downloading is downloading and is not the same as installing. So you downloaded a file. Remember the filename and search for it. Alternatively (if you used a browser), check where the browser by default stores downloaded files.
 
  


Reply



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
Contact your administrator HeLGeNx Fedora 3 04-10-2005 10:58 PM
running os x as administrator grimslater Other *NIX 2 02-09-2005 02:14 PM
MySQL Administrator eva Linux - Software 3 08-28-2004 10:54 PM
Webcalendar2.8.7 Administrator NIT Programming 1 10-21-2003 12:27 AM
administrator help debdas Linux - Newbie 4 05-15-2003 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 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
Open Source Consulting | Domain Registration