Questions tagged [users]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
16 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 ...
18
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 ...
2
votes
2answers
50 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
23 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
35 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 ...
1
vote
0answers
21 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?
0
votes
0answers
20 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 ...
2
votes
0answers
26 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 ...
2
votes
3answers
117 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
35 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
1answer
24 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),...
0
votes
0answers
10 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
31 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
31 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
1answer
34 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....
0
votes
0answers
29 views

Empty /home/user folder for NEW users [duplicate]

I am new on Linux so I don't know if this is a normal behavior or not. I am reading a bit about how to manage users. The thing is that when I create a new user using the "adduser" command it creates ...
4
votes
3answers
251 views

Run script with arguments as user

I am trying to make sure when a script is run it is run as a specific user without having to su to that user before the script is run. Also the script is run with a couple of flags for example ./...
0
votes
1answer
42 views

Command to list all user accounts as well as their last logged in information?

I am using this line of script to return back the list of my user accounts on a Mac via Terminal: dscl . list /Users | grep -v '_' While it returns the list of all user accounts, I also need for it ...
0
votes
0answers
27 views

How to reload users daemons as superuser?

I'm writing an installation script that should do the following just after package installation: systemctl --user daemon-reload systemctl --user start ${@}" The problem is that the installation is ...
0
votes
0answers
17 views

Should systemd service unit's have different names than daemon usernames

I often executed the following command and have always thought in my head "give me the logs for user httpd". journalct -uhttpd Wait a second. I don't have a user httpd, only apache. And upon ...
0
votes
0answers
9 views

NOEXEC flag prevents users to do /bin/su

I need to prevent the shell escapes in our systems.These are the sudoers file entries. Cmnd_Alias OD_DBA_2 = \ /bin/rm /*/apps/*, \ /bin/rm -[a-z]*...
1
vote
4answers
82 views

Check which users have specific password

I'm trying to remove all default user passwords across a bunch of servers with ansible. Firstly, I'd like to output the name of every user whose current password is foobar. How can I achieve this? My ...
0
votes
2answers
27 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
9 views

gVim under other user using gksudo

I want to start gvim as different user (bar) using .desktop file. When I run gksudo -u bar gvim, nothing happens. (No stdout/stderr output.) Why this command does not start gVim? I tried running it ...
1
vote
1answer
28 views

NOQUEUE: SYSERR(www-data): can not chdir(/var/spool/mqueue-client/): Permission denied

Here's the folder: drwxrws--- 2 smmsp smmsp 4096 May 25 22:47 mqueue-client/ So I did this... usermod -a -G smmsp www-data # groups www-data www-data : www-data smmsp But I still get this error ...
0
votes
1answer
21 views

How to give permissions for all users to execute a program installed by sudoers?

I installed a Perl program with many external dependencies in /opt/Soft (ubuntu 18 ) using sudo su at first step. Once installed, I exit the "sudo su" mode I could not anymore execute the program as a ...
0
votes
0answers
16 views

Can't manage user accounts after using LDAP

I've added a ubuntu machine as an LDAP client by following the below steps. But now when trying to access my user accounts from the user accounts app I can't find any user profiles or information as ...
0
votes
1answer
51 views

How to give permissions to all files of a server in a user without making him the owner

Recently I had a project which was about ssh connection with an Amazon EC2 server. In this project I was asked to create a user than can have read permissions -only- to the whole server (all files in ...
0
votes
0answers
10 views

creating a chroot sftp user connecting to a different directory

I created a user and added it to its own group at the bottom of my sshd_config i added Match Group sftpusers ChrootDirectory /var/dir1/dir2 ForceCommand internal-sftp However, it gives ...
1
vote
2answers
140 views

Does using non-root user without password makes system more vulnerable?

Let's say somebody sitting under user (non-admin, not root), but he didn't set up any password for it, only superuser/root has password. Is it bad practice (in context of remote access to a desktop ...
-3
votes
1answer
91 views

Script to prompt for the number of users; check how many files they have in their home directory and send a list of those users to the standard output [closed]

My homework asked me to The users are storing way too many files in their home directory and you would like to notify the top 5 offenders. You might want to run this script again for more or ...
4
votes
2answers
48 views

list files with specific group and user name

Do you know a command to list all files on the server with specific group and user name? I am looking for something like this: find -ls -group 'groupname' && find -ls -user 'username' this ...
0
votes
0answers
19 views

How can I run sqlplus as nobody

I have a bash script (/bin/foo) where I export PATH, LD_LIBRARY_PATH, ORACLE_HOME, ORACLE_SID and I can run sqlplus (Oracle SQL client) from the script, but when I try to run it like this sudo -u ...
2
votes
1answer
94 views

User not listed in /etc/passwd

As far as I thought, the list of users for my system can be printed in the terminal with: sed 's/\([^:]*\).*/\1/' /etc/passwd But I have noticed that when I use top In the USER column, my user ...
0
votes
2answers
106 views

Open a tmux session and then change to different user without password prompt

I am trying to create a script that opens a new tmux session and then runs a command inside that tmux session as a different user. The purpose of this is to create a new tmux session for a game ...
1
vote
2answers
105 views

Lubuntu 19.04 for System Tools > Users and Groups

On Lubuntu 18.04 I would add users via System Tools > Users and Groups. How is this done on Lubuntu 19.04 as there is no "Users and Groups" under "System Tools " as there is in 18.04. 18.04: 19.04:
1
vote
0answers
35 views

su - <username> hangs if I added a line in /etc/bashrc

I added this line to /etc/bashrc file export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.14/lib I log in as root throw SSH normally, but if I wanted to change my user by su - myusername the ...
0
votes
1answer
57 views

Does changing Linux username give any problems?

I've installed Linux Mint on my old laptop. I created a username with the temporary use in mind so it is not that good name and I want to change it. I know how to change username and rename the ...
0
votes
0answers
8 views

How to prevent non-sudo-installable Conda app from being able to modify itself (and other such apps too)?

There is a Conda package manager that can create independent virtual environments. But the most economic and default way to use it is to let it create hardlinks for packages used in several ...
7
votes
2answers
228 views

different output for groups and groups USERNAME after adding a username to a group

I stumble across a weird behaviour today. After adding a user to a new group like so : # gpasswd -a test myuser then connecting to a new bash session, here are the result for groups and groups ...
3
votes
0answers
55 views

Can I create a linux server user without creating a complete new account?

I've setup a Webserver with a GIT branching model. Now I want to create something like a technical user on my server. This user should not have an own account (I just need the user to to execute git *,...
0
votes
1answer
19 views

How can I predefine a path for a user logged in via SSH?

I'm looking for a way to set something like a default path for a user on my server. So for example I've the user XYZ. When I login now with this user on my server, I want to be directly in a defined ...
0
votes
1answer
22 views

FTP not giving permission for actions for user that has permission

I have a user on my server (Debian) that I will be using for FTP. For a given directory on the file system, he is able to create directories/create files. myuser@debian-server:/storage$ su ...
1
vote
2answers
66 views

How can we add multiple users to a group by single command in Linux?

I have to use usermod -G groupname username everytime to add user to group. Isn't there any way to do it by single line like usermod -G groupname user1,user2,user3
0
votes
0answers
124 views

No supported authentication methods available - connecting to FreeBSD using PuTTY

I have created an EC2 instance that runs FreeBSD, and I can log into it using my SSH key and the default user ec2-user. I logged into it, and switched to root using su. I then created a personal ...
0
votes
1answer
98 views

A separate partition for a user's /home directory?

Is it possible to separate /home/$USER for one particular user into a separate partition in Arch Linux x86_64 with the 4.19.31-1-lts kermel? I want to encrypt one user's /home directory, but I prefer ...
6
votes
1answer
284 views

Added a new user on Ubuntu, set password not working?

I created a new user: $ sudo useradd -m Ari -p pass123 But when I went to login it said the password was incorrect, I know it's correct because I saved the command line log as a text file. Other ...
0
votes
1answer
185 views

Valid special characters allowed in a CentOS 7 username?

I'm trying to figure out how CentOS 7 identifies what is considered a valid character in a naming convention when a user account is created. I was playing around with useradd to confirm my ...
9
votes
1answer
727 views

Different outputs for `w`, `who`, `whoami` and `id`

In command line platforms online, like for instance the one on Codecademy, when I run for cmd in w who whoami id do echo $cmd $cmd echo ========================= echo " " ...
2
votes
1answer
47 views

What is the fastest way to create multiple thousands of users on a system?

I need to create multiple thousands of users on a linux system. Currently I use the newusers command with a file as the source for all the users. The file contains around 10000 users. Running $ ...