0
votes
1answer
88 views

How to display all user and groups by command

I want to display 1. All users and 2. All groups in my pc by using command-line. users and groups displays users currently logged and groups a user is in respectively. How to display List of all ...
0
votes
2answers
33 views

Why the same .sh does not work with 2 different users executing it?

I have rwo users User1 and User2. I have this script1.sh inside User2 home folder: #!/bin/bash cd /home/user1 && ./script2.sh that calls script2.sh: #!/bin/bash if [ 2 > 1 ]; then ...
1
vote
0answers
36 views

How does a keylogger respond when the user switches profiles

I'm wanting to log keystrokes on this ubuntu computer and I was wondering how a keylogger program responds when the user goes from a default user account and then logs in as root or vice versa. For ...
1
vote
1answer
88 views

Is it possible for users not to be in passwd? [closed]

So I have a shell on a remote server. [alexandros.dimos@fep-62-1 ~]$ whoami alexandros.dimos [alexandros.dimos@fep-62-1 ~]$ cat /etc/passwd this too long the point is my user is not ...
4
votes
2answers
82 views

How to create two users who can read files of each other?

How to create 2 users a and b from shell, that will be able to read files of each other( say a can read the files of b, and b can read the files of a) . sudo adduser newuser sudo passwd newuser
3
votes
1answer
141 views

How to create a user that can login via SSH, but can't use shell commands?

How to create a new user that can login via SSH, but can't use shell commands? I've tried to set /bin/false as the default shell to the user, but then I no longer can login via SSH.
-1
votes
2answers
462 views

List all non system users [duplicate]

I want to know list of all users founded in my system. I need non-system users. I know that the file /etc/passwd contains all users root:x:0:0:root:/root:/bin/bash ...
1
vote
2answers
685 views

How to create a new user without home directory and with specific UID

How can I add a new user "Kids" with UID = 500 and without home directory with adduser command in terminal? I'm trying this: sudo adduser --no-create-home --uid ID 500 Kids and after correctly ...
1
vote
1answer
2k views

How I set the home directory and shell for a new user? [duplicate]

I am using 12.04 on my server. I created a new user using adduser me and passwd me and added it to sudo when I login this is what I see. Could not chdir to home directory /home/me: No such file or ...
8
votes
5answers
8k views

Home directory not being created

I am trying to understand system administration on Ubuntu. So, as an example, I create a dummy user using sudo useradd -d /home/linda linda and the passwd to create a the password. I check that an ...
1
vote
0answers
24 views

“Office” but no office in finger

$ finger myname Login: myname Name: My Name Directory: /home/myname Shell: /bin/bash Office: some custom text On since logintime on pts/1 from loginbox 1 ...
2
votes
1answer
101 views

How do I log out specific sessions?

I have read this these generic instructions to log users out, but I want more detail. When I run the command users I see multiple instances of the same user. IE: Joe Joe Joe Joe Joe How do I know ...
2
votes
1answer
571 views

Can I allow a standard user to execute only certain sets of command in terminal? [duplicate]

Can I create a whitelist of commands that a standard user can execute in the terminal in Ubuntu 12.04 desktop? I don't want to block the terminal for the standard user.
0
votes
1answer
467 views

How can i prevent standard user from accessing terminal?

How can i prevent/restrict standard users from accessing terminal in ubuntu-12.04.2-desktop-i386 ? I need to prevent standard users and administrators(not root account) in Ubuntu user accounts from ...
0
votes
1answer
372 views

Ubuntu two users logged with same name

I have a server and a ssh session, but it seems like I've pressed something and it was a shortcut so currently, when I do w it shows my other session (which I don't know how I opened). I closed my ssh ...
0
votes
1answer
217 views

How to configure the locale to be different from the default locale for a user on Ubuntu Server?

On Ubuntu Server 12.04, how can I configure an account to use a locale other than the system default local? Say if I wanted Russian users to be able to use Russian in the terminal ... and Polish users ...
3
votes
1answer
117 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 ...
4
votes
2answers
518 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
1k views

How to create a Remote Desktop Server on Ubuntu Server per user

I want to create an old style server - thinclient/terminal kind of work with ubuntu server 12.04. I was trying to use x11vnc to serve remote desktops to users but from what I have understood [after ...
7
votes
3answers
3k views

Delete a user and all files owned by this user

I have used deluser without the parameter --remove-all-files: $ deluser 'user' Is there a way other than rm -r /home/user to remove all files owned by a user now (since I have already executed ...
3
votes
1answer
2k views

How can I get the command log of a particular user on Ubuntu Server?

Is there a way to find a log of all the commands that have been run by a user on Ubuntu 11.10 Server? I need to find out what my friend ran to install a program.
5
votes
3answers
3k views

What is each logged in user doing?

To expand on this question: users command lists 5 of the same users...what are they doing? How can I track down what each user is doing or what service/app/request spawned another login of that user? ...
2
votes
2answers
261 views

users command lists 5 of the same users…Is this normal?

So if I type users from the CLI it lists: user user user user user If I recall correctly, I've never had that many. Is this normal?
0
votes
1answer
2k views

Why doesn't 'w' or 'who' command show all logged in users?

I have Ubuntu 11.10 installed on a laptop shared by multiple members of our family. When I execute the 'w' or 'who' command from a command line, I only see my account even though there are three users ...
11
votes
3answers
22k 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 ...
0
votes
1answer
939 views

How to work around the home directory changing to /root when using sudo?

With Natty coming out soon, I've been at work updating my deployment and self-config script to make my desktop on 11.04 run and look the way I want it to. One bummer is that dbus seems to have ...
13
votes
2answers
6k views

Logging out other users from the command line

Sometimes when there are too many users logged in it can cause my computer to become very slow and laggy due to low amount of available RAM. I would like to be able to quickly log out the other users ...