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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-28-2003, 11:44 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Posts: 14
Rep:
|
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
|
|
|
06-28-2003, 11:50 PM
|
#2
|
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445
Rep:
|
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.
|
|
|
06-29-2003, 09:29 PM
|
#3
|
Member
Registered: Apr 2003
Distribution: Mandrake 9.1/slack 9.0/BSD
Posts: 30
Rep:
|
On mandrake 9.1...
Type su at the prompt.
Enter password.
type drakconf
Now you should be able to do whatever you want.
|
|
|
06-29-2003, 09:32 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
06-10-2007, 10:11 AM
|
#5
|
LQ Newbie
Registered: Jun 2007
Posts: 7
Rep:
|
"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
|
|
|
06-10-2007, 10:49 AM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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)
|
|
|
06-10-2007, 01:17 PM
|
#7
|
Member
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87
Rep:
|
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
|
|
|
06-10-2007, 02:39 PM
|
#8
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
|
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
|
You don't cd into files. You'd need to mount the partition first and then cd to wherever you mounted it.
|
|
|
06-10-2007, 06:22 PM
|
#9
|
Member
Registered: Mar 2006
Location: Plovdiv, Bulgaria
Distribution: OpenSuse 11.3
Posts: 55
Rep:
|
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.
|
|
|
06-11-2007, 02:03 PM
|
#10
|
LQ Newbie
Registered: Jun 2007
Posts: 7
Rep:
|
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
|
|
|
06-11-2007, 02:08 PM
|
#11
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
|
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.
|
|
|
06-11-2007, 02:09 PM
|
#12
|
LQ Newbie
Registered: Jun 2007
Posts: 7
Rep:
|
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.
|
|
|
06-12-2007, 12:55 AM
|
#13
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
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.
|
|
|
All times are GMT -5. The time now is 07:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|