General :: How To Add SUDO Access
Jul 13, 2010How do I give a regular user account sudo access?
I'm using CentOSv5 (essentially Red Hat Enterprise 5).
How do I give a regular user account sudo access?
I'm using CentOSv5 (essentially Red Hat Enterprise 5).
I want to know how to setup SUDO, here is exactly what I mean. I have Zorin which is a ubuntu build, I have it upgraded to the newest 11.04 - My main user is Hevithan and I have a seperate user account called GUEST for anyone who wants to use my laptop. Hevithan I guess was setup to have max root powers cause when I type sudo in terminal with no option specified it returns:
Code:
Hevithan has access to
all (ALL)
all (ALL)
all (ALL)
I want to setup my GUEST account to have virtually no powers (no installing files or programs, no using Ubuntu software,no altercation of anything on the Hevithan account,etc), But I want anyone using it to be able to fix things using the terminal if need be (such as my cousins or girlfriend). To what things should they be allowed to do to able to fix but not alter? And if I want them to not be able to install programs or download porn (video at least) and $#!+, but still get things like MP3s and wallpaper images is that possible?
I need to provide sudo access to Oracle User, run only this particular "SRVCTL" command.
Do I need to edit "sudoers" file .if so where do I need to add these two lines in sudoers file.
1. apps/opt/grid/bin/srvctl
2. /apps/opt/oracle/product/11.2.0/db_1/bin/srvctl
since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.
View 4 Replies View RelatedKernel 2.6.21.5, Slackware 12.0
Code:
Code:
On the other hand
Code:
So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.
I've got my username on Ubuntu (I can't remember version number, but its 6 months old aprox)..
I'm the sole user (& admin)..
I have /home/myusername/ & can edit all files (without using sudo), but if I want to edit a file in another directory - i need to use Sudo..
I'm setting up a website /home/website/
(this is the same structure as the external website I'm going to edit, i want the directory structure to be the same..)
is there a way, I can allow FULL access to the /home/website/ directory - While logged in as /myusername/
(IE So I do not need sudo (or any 'admin' command), to edit the files )
It's been a few years since I last installed Ubuntu. I searched the forums and can't seem to find the answer. I want to be able to do a "su root" and have root access. I know Ubuntu wants you to do the sudo command, and I know you can really mess things up being root. I know I got this to work before. What do I need to do?
View 3 Replies View RelatedI'm the only user, can login (meaning I know my pass). But cannot Sudo. I'm on Ububtu Studio, the latest release. Doesn't make any sense.
View 2 Replies View RelatedLet me see if I can put this coherently: Programs that require super user authentication AFTER they have been launched (for instance,in the time settings applet, you have to sudo authenticate to update the clock, but not just to open the applet. Another instance is Ubuntu-Tweak, which requires admin rights for some of it's functions.)
[Code]...
Any other information provided on request. I'm using Ubuntu 10.04.1, all updates applied.
I do a lot of testing and developing on an Ubuntu machine at my university, and I don't have sudo access to the machine. It hasn't been a problem so far because the tools I've needed have been installed.
However, I have to build OpenCV, which has a lot of dependencies, some of which (notably, libbz2-dev) aren't installed.
I have access to localtmp on the local drive, and of course my own home folder (which is on NFS). Is there a way for me to install a local version of the tools I need using apt-get without sudo access? If not, is there another way to install them? I've been using CMAKE_INSTALL_PREFIX=/localtmp for some builds, but I'm not sure if this is the way to go, or if there is a better way.
tl;dr Is there a way to install applications locally without the ability to sudo?
Sorry if this is on the forums some where but I couldn't find what I needed, and not even with Google's mighty help. Basically I have a game, called Age of Conquest III, which I got working just fine, but it won't save any setup or game files unless I run it as sudo from the terminal, example in terminal: Sudo /bin/sh "/opt/age_of_conquest_iii/Age of Conquest III" Now I created a short cut with the command being just: /bin/sh "/opt/age_of_conquest_iii/Age of Conquest III"
What command do I put in my shortcut command to get it to open up like in my terminal command? I tried: Sudo /bin/sh "/opt/age_of_conquest_iii/Age of Conquest III" but this won't open anything.
I am trying to get a non-root account on one of our servers to run a script with sudo capability. To that end, I went into the /etc/sudoers file, and added the following syntax:
Code:
## Enable the nagios user to run the check_iptables.sh script as root
nagios ALL=NOPASSWD: /usr/local/nrpe/libexec/check_iptables.sh, /sbin/iptables
I restarted the nagios service, and tested the results. The results were the user account still could not run the script due to the user, nagios, not having permission to run the iptables binary.
Is there another step(s) that I need to take in order to get the sudo access available to the user account?
In order to allow me to shutdown my PC from within fluxbox without being root I ran "visudo" and added the following line:
Code:
psionl0 ALL=(ALL) NOPASSWD: ALL
A check that the line had been accepted showed all ok:
Code:
bash-4.1$ sudo -l
User psionl0 may run the following commands on this host:
(ALL) NOPASSWD: ALL
Yet when I tested it out, I got nowhere:
Code:
bash-4.1$ sudo pkgtool
sudo: pkgtool: command not found
bash-4.1$ sudo shutdown -h now
sudo: shutdown: command not found
bash-4.1$
Have I done something wrong or isn't sudo meant to be used this way?
I have been reading guides for a while now and so far have not found an exact solution to my problem.
I want a linux user (dave) to be able to switch to another account (patrol) without a password prompt, but dave must still be denied access to root. Patrol must also be denied root access.
In the sudoers file
Code:
User_Alias Patrol=dave,john
root ALL=(ALL) ALL
Patrol ALL=(patrol) NOPSSWD: ALL
[Code].....
It is my understanding that they do the same: they ask for my password (if I am allowed in /etc/sudoers), and give me a login shell as root.
Is there any difference between them?
sudo su -
sudo -i
Also, what's the difference between
sudo su
sudo -s
I think that they both ask for my password, and give me a shell with my old environment variables.
I have a log server that collects logs from all the cisco devices on our network.he company policy states that any logs should only be accessible by root. So I have the following permissions set on the directory, as well as everything inside the directory where the cisco logs are kept.
Code:
drwx------ 65 root root 4096 Apr 29 7:38 rsyslog
The cisco folks are requesting access to these logs, which is allowed by company policy.
[code]...
I made a Desktop User account. When I went on that account, it allowed me to execute sudo as if I was an administrator. I don't know what might be causing this. I do have ufw set up and blocking incoming connections. Do you guys know what might be at the root of this?Also, when I used sudo from the user account (which I shouldn't have been able to do), I provided the password for my admin account.
View 9 Replies View RelatedOriginal HOWTO can be found at: [URL]... So the other day I was in IRC and someone had brought up a problem where they created a new Administrative user, but didnt have rights to use sudo. Looked into the problem a little bit to figure out what was wrong, and it turns out that when you create a new user through the user manager (in kubuntu, anyways. Havent tested in Gnome.) the user gets added to the adm group, however, a quick look at the sudoers file shows that its looking for users in the admin group to allow the use of sudo. So, to solve the problem we do the following: If youre on the new admin user (which Im assuming you are) use the following commands:
Code:
su [insert username of old account without brackets]
sudo usermod -G admin [username of new admin account without brackets]
exit
Then simply logout, and then log back in (not always necessary, but the easiest way to flush the permissions.)
Code:
su [insert username of old account without brackets]
Means were going to Switch User to the old admin account
Code:
sudo usermod -G admin [username of new admin account without brackets]
This simply adds the admin group to the secondary group list for the new user
Code:
exit
Pretty self explanatory
Before, the "sudo cp -r" command automatically set the permissions to make the directory / files can be accessed by others.
But, after I reinstall Ubuntu 9.10 and apply all the latest updates, "sudo cp -r" command set the files to be accessible by root only.
After I copy the codecs directory to /usr/lib by using the above command, not only I cannot view the files inside, SMPlayer and other player software cannot access the directory.
To fix this, I have to run the chmod command to change the permissions.
Does anyone face this problem? Was it caused by the installation of latest updates?
Is it possible to change my current nautilus window to have sudo capabilities,? e.g. to delete locked files. It may be lazy but if it takes a lot of navigation then it would be handy to somehow activate sudo from the open window without the terminal command (gksudo nautilus) which always begins at root.
View 5 Replies View Relatedexplain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop
I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:
Code:
ldd /usr/bin/passwd
and
[code]....
A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.
View 1 Replies View RelatedI have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password
View 8 Replies View RelatedWhere is the SUDO file at, and remind me how do I add myself as a SUDO'er?
View 3 Replies View RelatedI am having trouble running commands by using sudo. I configured visudo file with localuser ALL=(ALL) ALL but I can't run any command, it tells me command not found.
View 8 Replies View RelatedI am new to fedora (been using debian based distro's for the longest time). With the new release I decided to give FC13 (The kde 64 bit spin) a try. I told it to wipe my entire hdd and encrypt the partitions. The partition manager made a few LVM partitions which I assume are encrypted.
The problem I am having is that if I attempt to use an application that would normally need root access to run, I am not prompted to enter my root password. Instead, I am required to logout and log back in as root. Is there a way to make it so that FC13 will prompt me to enter in my root password so I do not need to log in and out? Or is there something Different I should have done during the install process? Also, what is the terminal equivalent of "sudo" in fedora, or is it still sudo/KDEsudo
I also have not used SE Linux before. Do I need to manually enforce the permissions for my applications and generate my own profiles for it, or is that done automatically?
When I type sudo [command] it prompts for my password and after I enter it it tells me that i'm not in the sudoers file. How do i fix this?
View 10 Replies View RelatedIf I try "shutdown" as a normal user on Debian it give the "command not found" error. OK it's not in my PATH. But if I "sudo shutdown" it works. Somehow sudo seems to change my PATH.
Do the same in Slackware however and sudo makes no difference, I get "command not found" each time.
My OS is Linux Fedora 11.PC is IBM 1.8 GiB memory, Intel Duo E8500@3.1GHz.The modem I want to install is a USB stick from 'Cell C' the service provider.The code I got from the internet is for Ubuntu. I am new to Linux. When I type the code in at the Terminal, it tells me that Fdeb (my user login name) is not in the sudo file. How do i get my name in the sudo file?
View 2 Replies View Related