FedoraThis forum is for the discussion of the Fedora Project.
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.
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.
I am using Fedora 14. I installed the OS, and I
have the root password. I use the machine as a
non-root user.
If I try to login as root from the initial login
screen, I get an error saying permission denied.
If I login as the non-root user, and try to do
something that requires root privileges, e.g.,
modify a firewall rule, a dialog box comes up,
asking for root password. I get authenticated
without any issues.
However, if I try to do a 'sudo root' from the
console, the system asks for the root password
of the non-root user, which does not exist.So
typing in the root password does not work.
Could some Fedora guru suggest a remedy ?
Thanks in advance for your help.
1: 'dialog box' mean that it is on the GUI env ?
2: i have no idea what is 'sudo root'.
In order to get to the root account with all the env var you need to do "su -"
And far as i know you the sudo system in the fedora distro isn't like the ubuntu one.
hit enter and put in the root password, and you can execute commands as root from there, type exit when done to end root session of console. Do not log in as root if you don't have to.
The sudo command stands for "superuser do". It prompts you for your personal password and confirms your request to execute a command by checking a file, called "sudoers", which the system administrator configures. Using the sudoers file, system administrators can give certain users or groups access to some or all commands without those users having to know the root password. It also logs all commands and arguments so there is a record of who used it for what, and when.
When you enter the sudo command and any command you want to execute, what it asks is the users password and not the root.(usually used for executing single commands)
Fedora doesn't add users to this sudoers list by default. It is left to the root to configure.
In simple words, Fedora does not configure "sudo" by default.
On the other hand, The su command stands for "switch user", and allows you to become another user (usually used to become root).
If you still wanna hold on to "sudo" for some change. u can check the manual for sudoers. type "man sudoers" in the terminal and apply the proper configuration as per given.
I posted this query in another thread that I recently started about a non-booting new kernel, but it might be better to tack it onto this one.
Originally Posted by John VV
Quote:
but please do not use that "pam" hack
there ARE VERY big problems with that .
A lot of tools WILL NOT WORK from root if you do .
both fedora AND the Gnome desktop
killed off the root gui boot
-- for GOOD REASONS ---
AAMOI & FMI what are those good reasons?
I ask because, apart from su -, I've been using the "commentingoutline2 in /etc/pam.d/password" hack to get at "root" for months with no apparent problems.
It's so good/vitalIMO to be able to get at "root" from the GUI or my user account
And, AAMOI, how come the user account(s) don't appear in the Home folder when viewed from "outside"?
TIA
Paul W
Last edited by PaulFC5; 11-03-2011 at 08:28 PM.
Reason: Solved the problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.