1
vote
0answers
11 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
326 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
34 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
146 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
0answers
88 views

How to put root or administrator on Ubuntu 12.04

Ubuntu 12.04 on a flash memory, I changed my account from Administrator to Standard. Now I cannot do updates. How do I do updates or get it back as an administrator?
0
votes
0answers
157 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
2k 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
223 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
104 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 ...
6
votes
2answers
28k 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 ...
26
votes
5answers
5k 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
104 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
726 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
143 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
462 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
184 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
101 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
935 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
608 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
469 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
177 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
612 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
475 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 ...
4
votes
4answers
11k 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
740 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
310 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 ...
3
votes
1answer
2k views

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

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
569 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
3answers
18k 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
1k 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
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 ...