Hot answers tagged

2

It seems that there is a configuration somewhere pointing to that user. I have a few suggestions you can try. First, make sure your new $HOME has the right ownership. Secondly, read and post the error message given by Xorg. Thirdly, search your $HOME directory for any configuration files that hold the old $HOME path. cd $HOME grep -r "olduser" . It ...


2

find . -type f -printf %u:%g\\n | awk '{usergroup[$0]++}; END {for(key in usergroup) printf "%-20s %d\n",key,usergroup[key]}' hl:hauke 401 hl:1003 10 root:root 1 find prints for every file a line of the kind username:groupname. awk uses an associative array to count the occurrences. For every line the variable with the ...


2

You could get the username from the UID, passing that to passwd. passwd $(id -nu $UID)


2

It is much more difficult to prevent some particular access than to by default block all access and add specific exceptions for each kind of access. There is even a catchy term for this principle. Therefore, ensure that the commands that can be run via sudo are explicitly specified so that the user can never become root using it. After this has been done you ...


2

The usermod command wont work if you're logged in with the user you are trying to make changes on. From the manual page on usermod it says: CAVEATS usermod will not allow you to change the name of a user who is logged in. You must make certain that the named user is not executing any processes when this command is being executed if the user's ...


1

In Unix, to do even the most basic stuff, a user needs access to sundry resources (executables, libraries, configuration files, manual pages, examples, ...). Even what is considered "normal commands" like cp(1), ls(1), are regular programs run by the user, who will need to be able to access them. Users need access to much of the system, that can't be cut off ...


1

You need to edit the /etc/passwd file to change home directory of users that are currently logged in. Edit the /etc/passwd with sudo vipw and change home directory of the user. vipw highly recommended other than vim or other editors since vipw will set lock to prevent any data corruption.


1

You can remove their passwords since you want them to autologin. On terminal sudo passwd user1 -d for all three of them. They will not have any password. Also if your users has sudo privileges I assume they do then you need to user1 ALL=(ALL) NOPASSWD:ALL on sudoers file for three users


1

You have a way simpler solution, just run: su -s /bin/bash nobody (replace /bin/bash with the shell of your choice). The This account is currently not available. error is due to the fact that nobody user default shell is /usr/sbin/nologin, su -s force the system to use another shell.



Only top voted, non community-wiki answers of a minimum length are eligible