0
votes
1answer
33 views

Lost the root privilege after try to add the user to a group

My user lost root privilege after try to add the user to a group. It's looks like the "usermod xxxx --groups ..." change the from the root group to the new one, it's a mistake but the thing is my user ...
1
vote
1answer
52 views

How to make sudo use a separate password?

Using Ubuntu 14.04, I have 2 accounts: Account A (first one set up) with Password 1 Account B (second set up) with Password 2, when updating software in Account B, I use Password 1 to authenticate. ...
1
vote
1answer
34 views

/etc/sudoers file problem understanding

According to the documentation, modifications of this file may enables local users to execute sudo commands on remote machines: user1 192.168.1.14=(user2:group1) ALL According to what I read, ...
1
vote
1answer
69 views

Ubuntu no longer prompts for root privilege (but doesn't give it either)

So on 14.04 LTS I was playing around with some settings to solve another problem, and somehow managed to screw things up and now Ubuntu no longer asks for root privileges before trying to perform ...
2
votes
0answers
1k views

Allow chown command to www-data user

Is there a way to allow chown command to be run by www-data but limiting it in a way that the files owner can be changed only to uids greator than that of www-data user? I already researched a lot ...
0
votes
2answers
134 views

What is the root user

If you use sudo su - or sudo -s you will get the full root certification "likewise a root user ". Is this user an official user or is it from canonical? ~$ sudo su - [sudo] password for username: ...
0
votes
0answers
44 views

I don't want other administrator to change my password [duplicate]

I have one administrator account in my system which named as "admin". One more admin account called "test". I don't want test account to reset "admin" account and root account password in my system. ...
0
votes
1answer
243 views

I can't add myself(default user) in sudo group in ubuntu [duplicate]

I accidentally changed my primary group using the following command. sudo usermod -g localgroup shantanu #shantanu is my username I interrupted this process as soon as I realize what is happening. ...
4
votes
1answer
561 views

Can't login to my account, I know the password

I use Xubuntu 14.04 64 bit. I was watching a movie, the desktop froze (as usual duh!), I logged out using a terminal, and couldn't log in to my account after that, I'm using a terminal. I type my ...
0
votes
2answers
161 views

bypass sudo for a group of commands

I need to bypass sudo for a group of commands for a certain user so the command is just executed without using the sudo
1
vote
0answers
32 views

How to give groups and users different permissions.

I have an assignment whereby I am asked to create 5 user accounts in Ubuntu and then create 3 groups for them to belong to. This part I did just fine. There are now 5 user accounts in my Ubuntu OS ...
0
votes
2answers
2k views

How to add my user account to admin group (13.10 desktop) [duplicate]

I was trying to extract a web template into the hosting folder /docroot on the web service, which is working, however I do not have permission to complete the action. I cannot stand being locked out ...
0
votes
0answers
38 views

I attempeted to format ubuntu

I was trying to format ubuntu so i selected Restore to Factory Settings but nothing happened so i deleted all the partitions including the admin so now i am trying to make the partitions using guest ...
1
vote
1answer
210 views

Should I use a separate 'admin' user as my “root sudo” or grant sudo to my 'app' user?

I'm still wrapping my brain around the Ubuntu 'nullify root' user management philosophy (and Linux in general) and I'm wondering if I should 'replace' my root user with a user called 'admin' (which ...
0
votes
0answers
24 views

How to create user with sudo privileges from shell script? [duplicate]

I am writing a shell script that will create a user that I will use for deployments. I want to add that user to be able to use sudo without a password. How can I create this user from a shell script ...
0
votes
0answers
25 views

How to get back root access? (Rootrechte bekommen?) [duplicate]

Translation: I use Xubuntu and have deleted my Admin Account. After I had created a new one which also had administrative rights. I did that becauseof some sound problems which are now gone. Now the ...
0
votes
2answers
3k views

How to give a new user permissions to call sudo without a prompt for sudo password?

I am setting up a server in Amazon EC2. I created an image from Amazon's provided images of Ubuntu x64 12 LTS. My goal is to set up a secure svn server there, where access is only possible by IP ...
1
vote
2answers
242 views

What to do if I can no longer become the user root? [duplicate]

Possible Duplicate: How do I reset a lost administrative password? How can I give admin permissions to my account? I have no root password and I accidentally removed the sudo privileges ...
3
votes
1answer
117 views

Bash - Get Sudoer Username?

Say I have the following bash script: #!/bin/bash echo $( whoami ) This is what it outputs with and without sudo: alix@netbook:~$ ./test.sh alix alix@netbook:~$ sudo ./test.sh root The script ...
7
votes
2answers
38k views

How to give nopasswd access to multiple commands via sudoers?

Below is what I know: I have to add this below line in sudoers file to give rights to the user for particular task. user_name ALL=NOPASSWD: /usr/bin/apt-get install In this case I want to give ...
27
votes
5answers
6k views

How to NOT become a root user? Are administrators root?

I installed Ubuntu on my PC. To log in, I use the username and password I created during installation. Does this mean I am a root user? If yes, then how do I become non-root? It looks like non-root ...
1
vote
1answer
112 views

Ubuntu “1 time password on login” solution [duplicate]

Possible Duplicate: Why is it bad to run as root? I recently fully switched from Windows into Ubuntu. And of course I loved Ubuntu. But the most annoying thing is, system requires password ...
2
votes
1answer
918 views

Can I have a user execute sudo commands without being an administrator? [duplicate]

Possible Duplicate: How do I add a user to the “sudo” group? I recently became a UNIX admin for some relatives, and they are quite far up the creek on how to use ubuntu. I know that one key ...
2
votes
1answer
188 views

I want one of my users to be able to 'sudo init 5' without being asked for a passwd. How to do it?

I want one of my users (let's call him: pn) to be able to start X by sudo init 5.I don't want to give him access to any other commands. I read man sudoers, but I don't understand too much of it. Can ...
4
votes
2answers
518 views

What's the difference between root account and simulated roots?

So if I disable my root account with sudo passwd -dl root I still have access to sudo {su,bash} or sudo -{s,i} conceptually how are the elavated rights different from the root account? I know the ...
2
votes
1answer
192 views

How do I create another user?

I am new to Ubuntu. On login only my single user with guest is displayed. Is it possible to show multiple user names including admin user? sudo sh -c 'echo "greeter-show-manual-login=true" >> ...
0
votes
1answer
121 views

What directories does user own - LTS 12.04

Which directories in the hierarchy does the default main user (UID 1000) own? like maybe /usr/share/ or /bin/ I need to now exactly the directories my user needs to own in the hierarchy, in short I ...
0
votes
1answer
1k views

How to change account type back to administrator in 12.10? [duplicate]

Possible Duplicate: How do I reset a lost administrative password? I unexpetedly deleted administrator account and the other accounts are asking root password Cannot install anything as ...
1
vote
2answers
734 views

How does the sudoers work?

During an installation, as usual, we create our main user account, and then we can do sudo commands with it without problem. Now, when I created another account, and I wanted to do sudo, it gave me ...
1
vote
2answers
547 views

Why can root still edit files with a permission of 0?

I just wanted to delete most files from an external HD except some certain ones. So I chmod these ones to 0 and did a sudo rm -r ./*. Painfully, the result was that everything got deleted. Why is ...
1
vote
2answers
227 views

Why the need for sudo when I have only one account on machine? [duplicate]

Possible Duplicate: Why is it bad to run as root? I am bit confused about the need for sudo when I have a single user account set up on my machine. At install time I tried to call the name ...
3
votes
1answer
694 views

How do I allow a standard user to update the kernel modules for VMware?

I've set up VMWare Player for my wife. Every once in a while (notably after a kernel update), the VMWare Player needs to be compiled into the kernel. My spouse does not have su- activated (if anybody ...
0
votes
1answer
555 views

Why is my new user being asked for a sudo password?

I'm running Ubuntu 11.10. I'm trying to setup a user that's essentially a clone of the permissions of the ubuntu user. This works but I'm not able to sudo with this new user without supplying a ...
5
votes
4answers
14k views

Deleted Myself from Admin Group - Now Getting Error usermod: cannot lock /etc/passwd; try again later [duplicate]

Possible Duplicate: Cannot lock '/etc/group' in recovery mode I have a laptop with Ubuntu 11.10 that is shared between myself and two other family members. My user id was setup as ...
0
votes
2answers
3k views

Unble to use administrator account created without password

I installed Ubuntu 11.10 two days back. Today I added a user named vivi and set it to administrator. And I just changed vivek, my username, to standard user. Now, since I created new user vivi, I have ...
2
votes
1answer
801 views

Admin users on an Ubuntu Core installation

I installed Ubuntu Core using these instructions, and added a user. But when I try to add the user to the admin group, it says the group does not exist. What do I do? PS I had to install sudo, ...
2
votes
1answer
343 views

My only account is not in the sudo group

I installed Ubuntu 11.10 with a username fooname. And then I did something like sudo usermod -G vboxsf fooname Then, guess what: no one is a sudoer. How can fooname be back as a sudoer? In ...
4
votes
2answers
2k views

Allow user to execute sudo commands

I've looked at Add user to "sudo" group and added user (say 'abc') to sudo group But now when user 'abc' tries to use sudo commands ubuntu says, 'abc' is not in sudoers list, this incident ...
5
votes
1answer
3k views

I accidentally removed myself from sudoers, how can I fix this? [duplicate]

I have one admin account and recently I have accidentally added myself to a single group (usermod -G without -a). So, I am not in the sudoers file any more. However, it is not possible to log in to ...
7
votes
1answer
618 views

Is it safe to run a GUI program as another user?

I need to run a program (libreoffice) as another user. I noticed that the program started in the background when invoked as kdesudo -u otheruser libreoffice, possibly to avoid social engineering ...
11
votes
3answers
22k views

Disable sudo permission to user from command line

I have activated root user in ubuntu and want to use ubuntu as server with no DE. For this I want to disable sudo privilege given to first user. How can I do this from command line ? I know I can use ...
5
votes
2answers
2k views

Can't perform regular sudo commands, have to use su now

I'm an ubuntu newbie I just installed 10.10 and I don't know what I did but now to perform actions that required sudo privileges (open synaptic, mount device, run apt-get install, etc) the OS won't ...
0
votes
2answers
1k views

sudo access per folder? is that possible?

is it possible to give sudo privileges to a user for a specific folder? e.g i want the user 'dads' to have sudo access for creating/deleting files in a folder 'virgo' in /opt
1
vote
2answers
2k views

I am in group root and cannot use synaptic or sudo

I do not know the root password. I am only in group root. How do I add myself to other groups? I am getting this error on trying to open root terminal: Failed to run ...