I am new to Linux. I want to remove the home directory of the user andreas which was the administrator account into a directory called admins. I ran the command  mv /home/andreas /admins   I logged out and tried to log in and it does not let me log in. When I entered the password it leaves me at the login screen. How can I fix it?   root@ubuntu:/home# ls -al total 28 drwxr-xr-x  7 root    root    4096 Mar  4 10:19 . drwxr-xr-x 24 root    root    4096 Mar  4 10:10 .. drwxr-xr-x  3 root    root    4096 Mar  4 10:10 andreas drwxr-xr-x  2 root    root    4096 Mar  4 08:58 employees drwxr-xr-x 19 kostas  kostas  4096 Mar  4 10:23 kostas drwxrwxrwx  2 nicolas nicolas 4096 Feb 19 08:54 nicolas drwxr-xr-x  2 root    root    4096 Mar  4 08:56 users    root@ubuntu:/home/andreas# ls -al total 12 drwxr-xr-x  3 root    root    4096 Mar  4 10:10 . drwxr-xr-x  7 root    root    4096 Mar  4 10:19 .. drwxr-xr-x 22 andreas andreas 4096 Mar  4 08:55 admins root@ubuntu:/home/andreas#    root@ubuntu:/home# ls admins  andreas  employees  kostas  nicolas  users  root@ubuntu:/home/admins# ls Desktop    examples.desktop  personal_info.txt  sensitive_info.txt Documents  mario             Pictures           Templates Downloads  Music             Public             Videos root@ubuntu:/home/admins#
122482
I did a fresh installation of Ubuntu 12.04 on all my computers yesterday and one of them just doesn't seem to like 12.04. Let's start with the symptoms:   I initially tried installing through a USB flash with the desktop amd64 version. Since it had worked on all other (5) computers, I believe the USB flash drive was ok. However the computer seemed to be stuck after the Ubuntu GUI came up (bar on the top, pinkish background) but before the screen prompting to Try or Install. When the screen came up, the mouse was moving exceptionally slowly, i.e. it responded 2-3 seconds after I had moved it. After a few minutes, I could move the mouse with normal speed, but could not click anything. The Try/Install window never came up. The same thing had happened a few days ago when I had tried to install Ubuntu 12.04 Beta 2 on the same computer, but when the Try/Install screen kept failing to come up, I gave up.  I assumed it was a problem with the desktop installer, so I tried the alternative installer, which worked fine. But then, the same (or possibly a similar) problem appears on the login screen: the mouse moves very slowly in the first few minutes, then it moves normally, I cannot click anything (for example the buttons on the top right), and I cannot type in my password to login or select the guest session.    So I am stuck at the login screen. I did not encounter any problems on my other computers, so here are some specs of this one:   CPU: Intel i7 980x extreme edition Motherboard: Asus Rampage III extreme RAM: 6GB GPUs: 2x NVidia GTX 580 in SLI HDD: Western digital 1TB green power (20GB for root (/), 6GB for swap, all the rest for /home)   I should also note that this PC ran 11.10 flawlessly until yesterday, when I attempted to install 12.04. I tried installing 11.10 after I failed with 12.04 and it worked again, so its definitely something related to 12.04.   Unfortunately, due to the nature of the problem, I don't know how to provide any logs, but if there is some way let me know.
114374
How can I disable a user account from the command line?  In Windows XP or 7.
100620
I've just installed MariaDb on a fresh Ubuntu Gnome and ran  afterwards where I set a decent admin password, removed the anonymous user etc.  Afterwards I realized some strange behavior regarding the admin password:   If I try to login from my normal user account using the command mysql -u root -p I always get an error: ERROR 1698 (28000): Access denied for user 'root'@'localhost' I'm pretty sure I entered the correct password which I set with  earlier... When I run the command from root using sudo mysql -u root -p, I always get access to the database, no matter which password I actually enter...   Is this normal behavior, am I doing anything wrong or have I somehow screwed up the installation?
116764
I have installed Ubuntu using the GUI, giving myself a password and everything. I do not intricately remember the process. However, what worries me is that I don't know the following password:  $ su Password: &lt;the only password I've ever created on this machine&gt; su: Authentication failure   I just don't know what to do. I'm not in trouble, but I just want to know what's going on here. I can also lock myself out of directories:  starkers@ubuntu:~/Desktop$ mkdir foobs starkers@ubuntu:~/Desktop$ sudo chmod 777 -R foobs sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700 [sudo] password for starkers: &lt;the only password I've ever created on this machine&gt;  starkers@ubuntu:~/Desktop$ cd foobs bash: cd: foobs: Permission denied   I'm just a bit confused. How can I lock myself out like this? I think sudo is the key command here. But I'm making the foobs file as open as it can possibly be via the chmod, so why does it lock me out?
7493
I don't care if I mess up the system (which is likely if I do things like this), or the potential security issues that this could imply. Note, that I don't just want to "", but run my GUI from bottom-up as root. I don't want to type my password for anything but just for login and have total control over it.  Of course, I want any application running as root, like Firefox, LibreOffice, etc. without having to mess up with the terminal. So, how do I do this?     This question tries to address users that do not like the current permission system with root being separated from normal users. I do not endorse such behaviors, but if a user wants to, for whatever reason, this question should fit their corncerns.   Not advisable for new users
69998
Ref:   My Ubuntu user account name "user-3121" with type as "Administrator". There is one more account named "admin" with type as "Administrator". How can I be sure whether or not "admin" can login as me or otherwise view my files in "user-3121"?  I discussed this with the other user and we have tried to modify /etc/sudoers to protect my files:  Cmnd_Alias   SHELLS = /bin/sh,/bin/bash,/bin/ksh, /usr/bin/x11/passwd  Cmnd_Alias   SU = /usr/bin/su,/bin/su,/usr/bin/gksudo,/usr/bin/sudo,/usr/bin/su bash,/usr/bin/sudo /bin/bash,/usr/sbin/visudo  Cmnd_Alias   PASS = /usr/bin/passwd root,/bin/* * root,/bin/* * sysadmin,/bin/* * /home/sysadmin,/usr/bin/passwd  Cmnd_Alias      EDIT= /bin/* /etc/sudoers,/bin/* sudoers,/bin/* /etc/passwd,/bin/* passwd,/bin/* /etc/group,/bin/* group,/bin/* /etc/shadow,/bin/* shadow,/*/*/[a-z]* /etc/sudoers,/*/*/[a-z]* /etc/passwd,/*/*/[a-z]* /etc/group,/*/*/[a-z]* /etc/shadow,/*/*/[a-z]* sudoers,/*/*/[a-z]* passwd,/*/*/[a-z]* group,/*/*/[a-z]* shadow  Cmnd_Alias   CMDS = /usr/sbin/userdel * sysadmin,/usr/sbin/userdel sysadmin,/usr/sbin/deluser * sysadmin,/usr/sbin/deluser sysadmin  root    ALL=(ALL) ALL, !CMDS  %admin ALL=(ALL) ALL, !SHELLS, !SU, !CMDS, !PASS, !EDIT %sudo  ALL=(ALL) ALL,!SHELLS, !SU, !CMDS, !PASS, !EDIT  admin ALL=(ALL) ALL administrator ALL=(ALL) ALL   If "admin" can still read my data, how do I prevent that?  Also how does this configuration work, it allows "user-3121" to run some sudo commands, but it doesn't actually mention "user-3121" anywhere?  P.S. I'm the only person who knows the password for the "root" user, so that I can log in as root using the "su" command.
108798
I wanted to change my own password (as an admin) so I did the following command:  sudo passwd   and then it prompted for a password but when I tryed to relog, my password was not changed. I'm now wondering what password did I changed since it did prompted me to enter a password but I'm not sure what password did it changed exactly.  I know that if I do sudo passwd &lt;MY_USER&gt; it works, I'm just wondering without a user what happens.  Thank you
13155
I want to create a new user to run a service on the system but don't want to have /home and other configuration files for it. Like there is a user for postgres but it doesn't have any /home directory.
83812
I stupidly ran sudo rm /* followed by sudo rm -R /*  My sites still run, although the vast majority of commands like ls are now broken.  Is there a simple way to get data off the server or reverse some of damage?
93918
I love Linux and everything she stands for; however, unfortunately I grew up with Windows. Thusly so I have learned very bad practices (such as NT Authority will protect me). I have several Linux VPS's for personal and educational uses and I manage all of them from the command line. Through the management of these servers I have learned very painful lessons of the power of the Root user. Such as:   rm -d -R /* chown www-user:www-user -R /* Etc.    I've only removed my root directory twice, but just last week I changed the permission of the whole drive - effectively locking the Root out.   Now I know that I should never be logged in as Root, but most of the time I have to deal with files that only the Root owns so I sudo and run the command.   So my question is, is there a way to prompt the user (who is root, or sudo'ed) when a potentially hazardous command is executed, so the user may rethink their decision? Possibly through scripts in Bash, or a different sudo wrapper.   Or (I ask this hopefully, and very simplified) is there a way to set up permissions where instead of a two tier user system (Root user, regular user) there is a three tier system like in Windows (NT Authority, Administrator, other User). Basically is there a way to keep the ability of System administration, but restrict access to some system files.
33652
I made a mistake in the username at the time of installation. So I changed the name of the user after logging in by creating a guest account with SUDO rights. But when I checked the list of users using ls /home command I am not seeing the new name for the user instead Old name is appearing. But I use the new name to login.   Is it like I need to change the name inside Home directory separately? Also , if there is any other changes needs to be done .. ?
42770
How do I log into my Linux laptop if I have forgotten both the username and password?
80214
I am trying to change root password in my Ubuntu system.   This is what I did:  ashot@ashot-desktop:~$ sudo passwd root  passwd: Authentication token manipulation error  passwd: password unchanged   How do I change root password in Ubuntu?
32697
I accidentally made a directory "~/" under a subdirectory in my home directory. How to safely remove this directory without affecting my home directory. rm -r ~ obviously won't work... Thanks!
796
Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for applications? How do I keep permissions and my keys for various authentification (e.g. email, SSH, GPG and more)? What settings could possibly get lost if I changed my username?
108079
I have got a specific folder located in "/home/.../reboot/".  I have a series of users that require read-only access to the ever changing files within.  My problem is that the same users are not authorized to view any of the parent directory files.  Right now, the only thing I have in place is that their starting folder is at "/home/.../reboot/" by changing the etc/passwd file; and I need to block all access to other folders.  How could I only give them access to this directory?
67375
I can no longer log in to my system after running this command :  sudo chown -R &amp;USER: $HOME   as ROOT because I couldn't access  a certain file.   Now I can't log in again.