Tag Info

Hot answers tagged

30

man (the command, not the user) is a help application. Applications provide man pages in their packages but man needs to know where they are and also what help they provide. To speed things up — so man isn't search the whole filesystem when you type man <command> — these man pages are indexed into a database by a command called mandb. In Ubuntu mandb ...


4

The line if [ 2 > 1 ]; then causes the shell to try and open a file named 1 for writing. Read the section REDIRECTION in the bash man page for an explanation. Your user1 apparently is allowed to write to that file, and user2 isn't. You were probably thinking of this: if [ 2 -gt 1 ]; then Which tests whether 2 is greater than 1, which is obviously ...


2

You can display with the help of compgen builtin command as follows: To display all users run following command: compgen -u To display all groups run following command: compgen -g However you can also display all users by cat /etc/passwd | cut -d ":" -f 1.


2

You're running the mount command as root and haven't specified a different username. You can add username=user to the -o list (where user is the username on target machine): sudo mount -t cifs //192.168.0.2/uniserv /tmp/uniserv/ -o username=user,sec=lanman,servern=Uniplus1 If you want to connect to the share as a guest, use guest instead of username=user ...


2

If I understand you correctly, you would like to set up a universal password that all users would have to input in order to execute a command as root with a sudo command. Example: Account-A = Password-1 Account-B = Password-2 root = root-password If Account-A or Account-B enters the command: sudo apt-get autoclean Then the subsequent output: ...


1

sudo is a commad that might be best read as "SetUser Do" command: The command can also be executed as sudo -u username docommand.foo see man sudo


1

First thing to try is creating a new user and try to authenticate. You can do it with useradd -G [conflicting username GID] -o -u [conflicting username GID] testuser With this you'll be able to know whether is a problem related to your existing user's UID/GID or not. If this fails, try creating another new user: useradd testuser2; passwd; logout. If this ...


1

Why ... does it ask you for a username when it's not used? I would expect the username to be the name I log in with. That's exactly what it is used for. Admittedly if you're a graphical user, you probably won't have to interact with it that often but coming in over the command line or SSH, you'll need it a lot more. Also, why is it so hard to ...


1

Press Ctrl+Alt+F1 to switch console mode. Type your username and press Enter and also now type your password. Next type sudo dpkg-reconfigure keyboard-configuration and hit Enter type your password again and follow screen instruction. As usual, it will prompt you for the model of keyboard (what the keyboard is), and then for the keyboard layout (what the ...


1

I know this question is a little old, but have come across this twice now. Once with puppet, once with virtualbox. It cropped up again and I found something that worked. It's a variation on http://serverfault.com/questions/548996/syntax-error-unknown-user-munin-in-statoverride-file Instead of relying on dpkg-statoverride --remove ...


1

Enter this in the terminal: gsettings set com.canonical.indicator.session user-show-menu false And then reboot the machine. (In the other thread they suggest to use unity --replace & but it's always better to reboot). Source: askubuntu.com



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