Questions tagged [users]

Anything related with user accounts and user management on Unix-like systems.

Filter by
Sorted by
Tagged with
-4
votes
1answer
43 views

Why does “sudo ls ~” show the contents of /home/username rather than /root?

When I'm logged in as username, why does sudo ls ~ show me the contents of /home/username rather than /root? I thought that sudo executes a command as root, in which case ~ would represent /root.
0
votes
0answers
10 views

Restrict Postfix From domains

I have a webhosting server based on ISPConfig (Debian 9.9 LAMP) and I'm new to Postfix. When users send an email from PHP, the default address is webmaster@thedomain.com. This address can be overriden,...
1
vote
1answer
17 views

Make a user log in for a host valid for all the other hosts in the same domain

Assume that several machines with Unix-like OSs are connected to a server, which for example runs LDAP. Its database includes many users: one of them is testuser. This way, testuser can perform a ...
2
votes
0answers
10 views

Allow short “sessions” for a user with systemd

I'm testing a new gitlab runner I've setup. If a project just has a very short CI job (or one that fails very quickly, which is probably more realistic outside of testing the setup) systemd starts ...
0
votes
0answers
28 views

Where to place machine's system-wide private ssh deploy key?

I'm following the directions at https://developer.github.com/enterprise/2.16/v3/guides/managing-deploy-keys/#deploy-keys , which includes Run the ssh-keygen procedure on your server to generate a ...
3
votes
2answers
28k views

vsftp user authentication problems

I configured my ftp user's home dir to /var/www and set a password but I cannot login with ftp 127.0.0.1, it keep giving me 530 Login incorrect. Why is this? I'm sure I have typed the password right. ...
2
votes
1answer
99 views

User listed in group but not in getent passwd

On a specific machine with both local users and LDAP users, there is a user that is listed under getent group foo (let's say the user jdoe is listed), but when doing getent passwd jdoe I get no output....
1
vote
0answers
8 views

unable to boot directly to desktop environment

I tried to change a user's login name with usermod --login krypton maddybut now everytime I reboot my pc, it doesn't directly shows the desktop environment and I need to do Ctrl+Alt+F2 and then startx ...
1
vote
1answer
32 views

SFTP server not working

I'm kinda inexperienced at Linux, so I will just leave here all commands I used, to set up SFTP server on Ubuntu 18.04 Server. My goal is to create an SFTP server, with the following criteria: All ...
2
votes
2answers
1k views

Disable all USB devices for all users

The Problem Disable all communications on all USB ports for all users (preferably remove power but as I'll point out below I don't think this is possible). I'm currently using Linux Mint 18. What I ...
0
votes
1answer
6 views

LinuxLive: Howto login with local username

Linux (installed on my PC) doesn't want to boot anymore. So I access my data on my hard disk by running Linux from a bootable Linux Live USB stick. But some files on my harddisk can only be read with ...
7
votes
3answers
46k views

Listing users and usergroups in Raspbian

It surprised me, that no search has led me to such a simple question like this one. All I want is to get a list of users and usergroups (whatever the second thing actually is). I've found many ...
331
votes
11answers
612k views

How do I remove a user from a group?

Which command should I use to remove a user from a group in Debian? When adding a user to a group, it can be done with: usermod -a -G group user However, I could not find a similar command (...
3
votes
1answer
38 views

Why is there no “set effective supplementary GIDs” syscall?

The "effecive user/group ID" of a process is what the OS uses to determine whether an action (such as opening a file) is permitted by the process. You can set the effective primary GID of the current ...
1
vote
1answer
66 views

Switching a user using “su” gives me only the $ prompt

I'm using Ubuntu 19 and I created a few users already. On the latest user I created and tried to do a: su userx I login with only the $ prompt, but when I type "bash" as that user I get: userx@...
83
votes
6answers
18k views

Why can't Linux usernames begin with numbers?

Is there a technical reason why? Is this an artifact from the early days of Linux or Unix, and if so is there a reason why it persists?
4
votes
4answers
53k views

adding a sudoer in debian

After a long search on the web, trying everything I can find I came to ask you guys, how can I add an existing user to be a sudoer? I've tried usermod -a -G sudo user and also adduser user both ...
1
vote
1answer
30 views

Why does Debian run “atd” as the “daemon” user?

$ ps -aux|grep atd daemon 800 0.0 0.1 27964 2228 ? Ss 19:11 0:00 /usr/sbin/atd -f alan-sy+ 7042 0.0 0.0 12780 948 pts/0 S+ 20:22 0:00 grep atd $ /sbin/getpcaps 800 ...
5
votes
2answers
4k views

How to get NFSv4 idmap working with sec=sys?

I have a Server (Debian) that is serving some folders trough NFS and a Client (Debian) that connects to the NFS Server (With NFSv4) and mounts that exported folder. So far everything is fine, I can ...
7
votes
4answers
409 views

How can I safely give a shell to somebody?

I have a question about giving a shell account to somebody. How safe is it? He could read /etc. How can I give a secured shell account that will only restrict the user to some bins and his own home? ...
1
vote
0answers
32 views

Debian 9: Users and Groups

I'm trying to run users-admin from Debian 9 LXDE but I'm having the following issues: 1. Logged as root root@debian:~# users-admin Gtk-Message: GtkDialog mapped without a transient parent. This is ...
3
votes
3answers
12k views

How can I have a separate umask for directory or user?

I want a separate umask for a directory or a user. How can I do this? Edit: I am using Debian 6. The reason why I want to do this is, I want all my SFTP users to create files with write on group. ...
0
votes
1answer
1k views

problem of denied access using kvm

I would like to test kvm with opensuse tumbleweed. I successfully installed kvm, but I am stuck in creating my first VM. The trick is that I want to have the VM's directory in an external HDD. When ...
19
votes
1answer
2k views

Why run a service as a system user?

I have a general question about the UNIX world. I am currently running Ubuntu at home and installed Transmission on a device and it runs as and saves files as the transmission-debian user. I am ...
0
votes
0answers
18 views

How can I set wallpapers for other users without logging in to their accounts?

I am working on a bash script that creates users from the root account. I would like to set the background for those users without logging into their account and changing it manually. I am running ...
1
vote
1answer
1k views

Security - Runing Daemon, program as root or user vs sudo su

I have some questions about Linux security: Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user (...
13
votes
6answers
57k views

When trying to change username, terminal tells me user is currently used by process

I am trying to change my username, as per advice here however after running the following command: CurrentName@HostName ~ $ sudo usermod -l TheNameIWantToChange -d /home/TheNameIWantToChange -m ...
2
votes
2answers
56 views

See who is current user in a ssh terminal session in FreeBSD 12

When using a terminal session via ssh to a FreeBSD 12 server, how can I verify the name of the user in that session?
1
vote
1answer
26 views

In RHEL7 is it possible to allow only some users to create ssh tunnels

I want to setup a RHEL7 host that will allow a few people to ssh in. Let say 10 people will be able to access the box via ssh. Of those 10 people I only want 3 to be able to create a tunnel to other ...
0
votes
1answer
50 views

How to restrict use of SFTP feature “escape to local shell”?

In order to make a file server with restricted access, I set the following configuration: On the file server (Debian Wheezy) Create a user data-reader without home, without shell, in the group named ...
2
votes
3answers
120 views

Set up users, during install, based on directories in /home

Are there any Gnu/Linux installers that will look at an old /home partition, to set up the users based on the directories in the root of this partition? So if I install a new Gnu/Linux, and keep my ...
2
votes
0answers
32 views

Overlapping local and LDAP usernames

We have several RHEL 6/7/8 machines where user authentication is done through LDAP. One of our sysadmins would like to set up local accounts for some users on some machines, with the local username ...
1
vote
0answers
23 views

How to create user who will not be using /etc/passwd for authentication?

I want to add a user to my Ubuntu who will be authenticated using SQLite or another database. I don't want to use /etc/passwd file. How can I achieve it?
3
votes
1answer
1k views

gnome “switch user” shortcut or command line

Is it possible to switch user of gnome desktop environment by single command or any shortcut key, in centos 6.0, or Can we create shortcut key? I found "fusa", but still unable to install it.
0
votes
0answers
21 views

What is special in Fedora Mate spin for the user name “skype”?

I can create a user with any user name and successfully log into Mate, but if I create a user name skype it immediately logs out. I blew away and re-created user names skype and user1, user2 etc ...
3
votes
2answers
8k views

/home/user: change directory failed error

I just installed Arch reading from the Beginners' Guide on the Arch Wiki. Once I rebooted Arch, I logged into root then I added my own personal account: useradd fox then passwd fox and set my password ...
-1
votes
1answer
11k views

pulseaudio run as root [duplicate]

I have Ubuntu 12.04 installed on my PC, recently I have edited /etc/passwd and changed user1:x:00:00:user1,,,:/home/user1:/bin/bash to give root permission to user1 and the system always need to ...
1
vote
1answer
1k views

How to fully manage users and groups with web GUI and create templates for new users?

I currently have an Ubuntu server with 10-15 users. I have some CLI experience, but I am not a fully CLI ninja. I currently have some groups made in the CLI to manage different groups of users. In ...
1
vote
1answer
29 views

Primary and secondary group of a user

Why is it that group1 which should be user's primary group, is in the subgroups? The user is not even part of group1 in /etc/group file. # id user uid=1000(user) gid=1111(group1) groups=1111(group1),...
4
votes
1answer
75 views

What is the signifance of the Primary Group of a user?

Why must a user in POSIX-compliance have a Primary Group? Why can't they just belong to groups?
3
votes
2answers
2k views

Central user management with multiple servers with SSH keys, LDAP?

the number of my servers and users is growing and I would like to adopt a central database to manage users accounts. I'm thinking about OpenLDAP, but I have a question. Is it possible in LDAP to ...
0
votes
2answers
48 views

System service running as user is terminated on logout

I have a system service that is executed for selected users. Name is serv@<uid> (<uid> is UID of the user). I want to share user's resource limits with the service (place it into user-<...
0
votes
0answers
12 views

Grant permission to ftp user in other directories

I need a user that I created in my ftp server to access other directories. Example, the tech user was created in the following way: useradd -s /sbin/nologin -c "FTP user for mail accounts" -G mailg ...
1
vote
1answer
32 views

If I run a command with `sudo` is it still “invoked by an ordinary user”?

Quote from manpage of davfs2.conf for mount.davfs: There is a system wide configuration file /etc/davfs2/davfs2.conf and user configuration files ~/.davfs2/davfs2.conf. When mount.davfs is ...
1
vote
0answers
35 views

logging for proxycommand

I need to logging users that connected throw bastion host using proxycommand, I have used next command: $ ssh -i ~/.ssh/key.pem user@ip -o "proxycommand ssh -W %h:%p user_bastio@bastion" In ...
1
vote
2answers
1k views

Script to see if user has logged off

I have created this program to see if a user is logged on and it checks every minute. if [ "$#" -ne 1 ] then echo "Usage: mon user" exit 1 fi user="$1" until who | grep "^$user " > /dev/...
3
votes
2answers
790 views

Which user owns X display?

How to determine, as root, which user owns X display :0? (on a Fedora 18 system with defaults)
3
votes
5answers
7k views

Set the default permission when creating a file

When I create a file, the permission is 644 (user rw, group r, other r). How can I make the default file generated to have permission as 664?
1
vote
1answer
35 views

Linux user with numerical name found and can't find who is it

Simple and fast question: kevin@pc:/usr/lib/jvm$ ls -l total 8 lrwxrwxrwx 1 root root 25 Feb 20 17:31 default-java -> java-1.11.0-openjdk-amd64 lrwxrwxrwx 1 root root 21 Apr 23 20:34 java-1.11....
66
votes
10answers
89k views

How do you kick a benign user off your system?

I was googling this a bit ago and noticed a couple of ways, but I'm guessing that google doesn't know all. So how do you kick users off your Linux box? also how do you go about seeing they are logged ...