I want to be able to run commands as root... How do i do this?
sudo yum install @kde-desktop
cromwell is not in the sudoers file. This incident will be reported.
I found a post saying to edit
/etc/pam.d/gdm but there are several variants (
gdm-pin, etc) and i dont really want to go out on a limb.
This is the first question i have, with my first time running Fedora I am very pleased that it comes with the up to date software i am looking for. Any and all help getting past this simple problem would be greatly appreciated.
How do i make the
sudo command work in fedora 20? (I do not want to log in as root, simply run the commands as root)
the following is a copy-paste from my bash prompt:
[root@localhost /]# sudo adduser cromwell sudo Usage: adduser [options] LOGIN adduser -D adduser -D [options] Options: -b, --base-dir BASE_DIR base directory for the home directory of the ............. -Z, --selinux-user SEUSER use a specific SEUSER for the SELinux user mapping [root@localhost /]#
I tried the following command, as instructed here:
sudo usermod -aG sudo cromwell
it then says:
group 'sudo' does not exist
i then enter
sudo usermod -aG and press tab a few times...
abrt chrony ftp halt
nobody root tss adm
colord games lp openvpn rtkit unbound avahi cromwell
gdm mail operator
shutdown usbmuxd avahi-autoipd daemon
geoclue mysql polkitd sshd
bin dbus gnome-initial-setup nm-openconnect pulse sync
i then ran the following command
sudo usermod -aG adm cromwell and it ran with no error... i did a full reboot, and once logged back in i ran
sudo mkdir~/test`... then low and behold i get the same error about the sudoers list =(
(it may be worth noting that i did manage to install kde by logging in as root, therefore i am currently using KDE as my desktop. but still.... how do i use sudo?)
EDIT SHOULD I ADD MY USER TO THE
(EDIT- i am told here to NOT do this, as it will result in massive security issues)
the first option of the accepted answer was what worked. THE SECOND OPTION DID NOT. This should be noted here, or the second option deleted
Note, if this is off topic for super user (or not within the expertise of this website) please let me know, and i will personally flag it for migration. Thank you.