Ubuntu :: Only User Cannot Gain Sudo Access
May 11, 2010I'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 RepliesI'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 RepliesOriginal 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
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 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?
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
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 RelatedI recently installed Ubuntu 10.04 32bit on my laptop. I am trying to learn the command line and also install software via the command line. I type in su and hit enter it asks me for my password and I type that in. The password fails, why is this? I am the one who set this up and installed the OS. Now I am logged in using my normal user account when doing this from the GUI
View 8 Replies View RelatedI am trying to email a .pdf file that I created on a mac system, and I am being told after attaching the .pdf to the email that: Quote: Unable to save your message as draft. There was an error attaching . Please check if you have access to the file I found an evince tutorial on line to try and resolve this on my own, however I am still getting the same error. This is the link: [URL]
View 1 Replies View RelatedI've recently created a new user's account in Ubuntu because of some difficulties I was having with network communications. Apparently this has affected my ability to get into a terminal because now, when I submit my user name I get the following:
[OPTIONS] [PASSWORD-FILES]
--single "single crack" mode
--wordlist=FILE --stdin wordlist mode, read words from FILE or stdin
--rules enable word mangling rules for wordlist mode
--incremental[=MODE] "incremental" mode [using section MODE]
--external=MODE external mode or word filter
--stdout[=LENGTH] just output candidate passwords [cut at LENGTH]
--restore[=NAME] restore an interrupted session [called NAME]
--session=NAME give a new session the NAME
--status[=NAME] print status of a session [called NAME]
--make-charset=FILE make a charset, FILE will be overwritten
--show show cracked passwords
--test perform a benchmark
--users=[-]LOGIN|UID[,..] [do not] load this (these) user(s) only
--groups=[-]GID[,..] load users [not] of this (these) group(s) only
--shells=[-]SHELL[,..] load users with[out] this (these) shell(s) only
--salts=[-]COUNT load salts with[out] at least COUNT passwords only
--format=NAME force hash type NAME: DES/BSDI/MD5/BF/AFS/LM/NT/mscash/NETLM/NETNTLM/bfegg/DOMINOSEC/lotus5/raw-MD5/raw-sha1/IPB2/nsldap/openssha/HDAA
--save-memory=LEVEL enable memory saving, at LEVEL 1..3
I've always been able to just install my name and password and things worked smoothly. What is this about and what do I need to do to restore my ability to use a terminal?
After installing Fedora 6 (and probably any later version) I find that access to the add/remove section is denied unless I have an Internet connection which I don't have. I just do not see any reason why this is done this way! One can't even gain access with the DVD Is there a way to circumvent this nuisance from the terminal Does anyone know why this is put into the installation in the first place.?
View 2 Replies View RelatedI'm working with a laptop that will not boot into windows (the sole partitionI'm working on a laptop that recognises that a windows partition is present in ubuntu live CD but will not mount it so that I can gain access to the system to recover files. I get this error:
Code:
Failed to mount: '/dev/sda2': input/output error
What I want to know is how to force mount the partition so that I can gain access or any other method that will allow me to recover those files
I have installed transcriber from the ubuntu repositories the version is listed as 1.5.1.1-3
I am trying to use this program on Ubuntu 9.10 (64bit), and when attempting to play the audio file (standard mp3 format) I get the error message:
Quote:
could not gain access to /dev/sound/dsp for writing
Everything else I have tried for sound works fine and The mp3 file I'm transcribing plays fine in any other application eg movie player and rhythm box etc.
the full error message is:
Code:
Could not gain access to /dev/sound/dsp for writing.
Could not gain access to /dev/sound/dsp for writing.
while executing
[Code]....
I just upgraded to Fedora 12 on my computer. Now I can't connect to the net. Under network I show the two connections (neither working). The "connect" and "disconnect" AND the "delete" buttons are all grayed out (?). I also can't log in as root to try to gain more access. Probably just a new way of doing things. I was upgrading from F7 so it was a bit of a jump.
Does the network utility work differently from 7? Am I now rootless? It would seem that my wifi card sees the net as I can see the routers out there, but can't connect. I'm sure I'm using the correct WEP.
When i installed ubuntu. I made a seperate partition so that i could copy an ISO image onto it of an up-to-date version of ubuntu. I wanted to then boot the ISO up so i could install the new version that way. I've already tried doing it through the update manager but it'll download, almost be done with installing and it freezes on me. so i figured this would be easier. However i do not know how to gain access to the other partition to copy the ISO image. Please help.
View 1 Replies View RelatedI have got openvpn running on my system with certificates and open to the IP addresses 17.xx.xx.x on the server.
What should I definitely block off from the system so that anyone using the VPN cannot gain access and how should I go about this in the firewall?
I'm guessing to block off intranet access to the webserver.
I have mysql and some mail programs running as well - how can I block those off?
I have a friend that recently moved to Linux. She had started out with Ubutnu 9.04, which was giving her a lot of Issues along with being no longer supported, so I recommend Linux Mint 10 to her, since she wanted something closer to Windows. I instructed her on how to do a clean install. Linux Mint installed ok, but when she was about to set up wireless to get on the Internet, she realised that she had forgotten her password. She called her network (Belkin) for assistance to retrieve it. She was told that Linux is not really supported; however they gave her this address to access the router: 192.186.2.1 from her browser which did not work. So there was nothing further they could have done since she couldn't gain access to the router. She is currently only able to use Ethernet connection to get online.
What could she do to reset her password or gain access to the router? I didn't want to tell her to reset the modem in case it will leave her with no internet and no way to setup her router.
I had errors pop up when I tried updating my 10.10 to 11.04 so I ended up having to do it from a Live USB which installs it over everything (fine by me).Unfortunately I forgot I had an encrypted /home directory. So various messages and stuff came up when I tried to log in.nfortunately I don't remember what my encryption passphrase is offhand, so I moved it to a slightly different folder name and had to have a new directory created for my username.It's still there, but how can I try to open it trying the various versions of the passphrase I think it may be? Can I double-click it and try?Also, in the future what is the best way to handle a "fresh" install that I want to connect to my encrypted /home directory?
View 4 Replies View RelatedWhen booting PartImage from a USB SysRescCD, at the PartImage 'root@sysresccd / root %' prompt, I try each of the following three commands:- touch /media/partimage- chown root /media/partimage- chmod 666 media/partimageAnd each time, I receive the following error message: 'Changing permissions of 'media/partimage': Read-only file system.'The attempt is denied.How can I grant PartImage root access rights to this directory?
View 2 Replies View RelatedWe have a server were we no longer seem to be able to gain access, neither locally or remotely.When we try to connect via SSH we get a "Connection Refused". We have checked that it's not our standard firewall blocking the request, so it can either be the local firewall (which we disabled when installing) or that the process isn't running.However, when we try to login locally on the machine (as root) all we get is "Login failed". We've tried restarting the machine in single user mode to change the root password, and while we can do this succesfully, it still doesn't give us access when rebooting the machine afterwards.No other users (besides the standard users created when installing) are available on the server, so we can't say if this is a problem with the root account, or with logging on in general.
View 1 Replies View RelatedI am running ubuntu 10.10 on a sony vaio f115. I am trying to install the printers for a brother mfc5460cn. I have used apt-get and aptitude, I have used sudo and sh all to no avail. I always get the same messages: cannot lock administration library (var/lib/pkg/) (11 temporarily unavailable) and cannot get lock/var/lib/dpkg/lock - open (11 temporarily unavailable)
How do I gain access to these libraries?
When trying to install a new printer I can't get the samba to show under the network printer list. I even tried the "localhost" method & it still doesn't show. Samba is running fine & I can navigate to my shares. Even running the printer config. in the terminal result in no errors & no list.
Anyone have any ideas? This is the first I've encountered this... not even to sure what to google.
How to become a root user without using sudo?So,that i can become super user to edit configuration files in etc directory.
View 1 Replies View Relatedtitle says it all. I know, I know, a recursive chown, what was I thinking. It was late.
I just straight up:
sudo chown -R user /usr/
Now I can't `sudo', error is "authentication failure".
I was trying to add my user to a group and used the command
Code:
sudo usermod -G sambashare_kid dev
which left me with
[code]....
I get this message if i try to use sudo/gksudo. What causes this, how can I solve it? It has been working for years. If i remember correcttly there was a sudo update few days ago, maybe it doesnt work since then, i havent used it in the last few days.
View 9 Replies View RelatedHow to disable 'sudo' for all or a particular user and allow only 'su'?
View 6 Replies View RelatedI made a mistake on my friend's Ubuntu system when trying to get hard drive permissions right. I wanted to add a user to a certain group with usermod -G, but without realising I should also use -a, with the result that the user is now not longer in the sudo group. This is the only (regular) user on the system, which means I can not sudo usermod again to get it right. So what to do? The only solution I can think of is using a live disc to restore the group belongings, but I want to know if there's a quicker way. Also, I don't know what more groups the user was in. Is there a history? Or else, what are the default groups?
View 5 Replies View RelatedDo you think there is a way of accessing different user data from another account which I have set up.
Ie. user 1 = account has messed up
user 2 = account works fine
access user account 1 home directory from user 2 work space?
How do I add a user to be able to sudo?
View 14 Replies View RelatedI'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 )