Linux - NewbieThis 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.
[fedjond@Fedora13 ~]$ sudo su
[sudo] password for fedjond:
fedjond is not in the sudoers file. This incident will be reported.
[fedjond@Fedora13 ~]$
Can you point it out please?
thanks for your time
Point out what? That the security on your box is working exactly the way it should be?
You are a non-root user, and are obviously denied access to the file. Either run that command as root (NOT recommended), or use the proper method and run visudo, to put yourself in the sudo'ers file. If you're not in sudoers, you won't be able to run sudo commands, no matter what password, or how many times you try.
Run "su - root", log in as root, and run visudoers to add your user.
maybe there is a password set for the root account (the single one you used)? Did you try just "su" with that password?
If it doesn't work, you can always "crack" root locally when you control the machine by passing "init=/bin/sh" to the kernel when booting and then mounting / rw ("mount / -o remount,rw") and setting a new root password with "passwd". Don't forget to remount / ro ("mount / -o remount,ro") before turning off the system.
If you don't want a root password, set something like * or ! as the password hash in /etc/shadow for root, but make sure you can sudo before. On a side note: never edit /etc/sudoers directly, use visudo
If it doesn't work, you can always "crack" root locally when you control the machine by passing "init=/bin/sh" to the kernel when booting and then mounting / rw ("mount / -o remount,rw") and setting a new root password with "passwd". Don't forget to remount / ro ("mount / -o remount,ro") before turning off the system.
Thankfully, unlike Ubuntu (and debian?), Fedora doesn't by default password single user mode so just easier to place a 1 at the end of the kernel line, no messing about then.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.