Tagged Questions
0
votes
0answers
30 views
'w' command not showing users list when not root ('who' does)
I have multiple users logged on my server (ubuntu 12.10), with ssh. None of them has root privileges.
If I then log in with my admin account and type (without sudoing)
admin1@server:~$ w
the ...
0
votes
2answers
238 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
173 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
65 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 ...
3
votes
2answers
3k 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 ...
24
votes
5answers
2k 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 ...
0
votes
1answer
84 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
222 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
69 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
213 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
134 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" >> ...
4
votes
1answer
5k views
Default groups for user in Ubuntu 12.10?
Installed HP Linux Imaging and Printing by using install script and something crashed. Now I'm only member of my own group and lp.
Which are the default groups for users in Ubuntu 12.10? Same as ...
0
votes
1answer
57 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
424 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
335 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
263 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
122 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
364 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
318 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 ...
3
votes
4answers
5k 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 ...
3
votes
2answers
599 views
Degrading administrative privilege to standard with single admin user account
I recently met with a severe issue with user accounts. In my system, there is only administrator user named vivek. I added another user with name vivi and changed its privilege to administrator. After ...
0
votes
2answers
2k 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
603 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
273 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 ...
1
vote
1answer
198 views
How to create a group which is allowed to use the adduser command?
Does anyone know the commands for each step listed below?
Create a new sudoers group called privilege1 allowing the use of the adduser command and nothing more. The sudoers configuration file is ...
4
votes
2answers
1k 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 ...
6
votes
1answer
470 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 ...
9
votes
2answers
8k 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
845 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
864 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
1k 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
...
93
votes
4answers
207k views
How can I add a new user as sudoer using the command line?
After I add a user using adduser, I can't see it via System->Administration->Users and Groups unless I logout then login again. Is that normal?
Also, can I set a newly added user as a sudoer or ...


