Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [users]

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

0
votes
0answers
26 views

How to add username when using host in /etc/hosts for ssh? [on hold]

I have a line specifying a server in my /etc/hosts/ file. As an example 127.0.1.1 server. When I log into the server, I usually do something like ssh username@server. Is there a way to append the ...
0
votes
1answer
14 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
46 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:
0
votes
1answer
36 views

gdm user does not exist [on hold]

We have rebooted the servers now we are getting this error on RHEL 5.11. The gdm user 'gdm' does not exist. Please correct gdm configuration and restart gdm"
1
vote
0answers
27 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
43 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 ...
-2
votes
0answers
19 views

USER PERMISSION IN kali [duplicate]

Can anyone tell me what permission are necessary for a file so that it can be deleted by another user of same group?
7
votes
2answers
183 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
49 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
17 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
38 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
30 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
67 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
225 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
47 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
338 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
45 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 $ ...
0
votes
0answers
32 views

Unable to reply to other users using write command

I am trying to reply to a message sent by other user in the Ubuntu termnial. I have 2 users sudhir & chethu. User chethu is logged into system normally & user sudhir logged in via putty. We ...
1
vote
1answer
23 views

A single unified account for all users on a single machine, while preserving separate credentials

So this is more of a reverse-engineering question. We have this machine at work, where anyone can login using ssh. ssh johndoe@gateway01. However! Once logged in, the user the person is logged in as ...
0
votes
2answers
183 views

root “su - <user>” got permission denied (Ignored)

Got permission denied when switching user from root to postgres. No issue switching from root to ubuntu. root@node-01:~# su - postgres su: Permission denied (Ignored) postgres@node-01:~$ logout root@...
0
votes
0answers
45 views

Trying to add an SFTP user without changing ownership to them

I'm running CentOS 6.9. I'd like to add SFTP users that can access certain directories. For one of them, I'd like them to be able to access everything (with SFTP permissions only and no shell access)...
0
votes
0answers
44 views

How to know list of programs run by remote ssh user

How do I list the programs run by the users who are connected using ssh ? I need to know the programs run by each IP Address
3
votes
1answer
59 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?
1
vote
1answer
51 views

Can only write as root although user seems to have full permissions [duplicate]

I am having trouble writing to a samba share from a linux client (a Windows client can read and write just fine). According to ls -la run from the linux client, I should have full permissions: james@...
0
votes
1answer
28 views

Adding Sudo Permission to a user

I am trying to add sudo permission for a user to login as a different user. Currently I am looking for below scenario. For eg: If "Sam" need to login as "Scott" using sudo access then what are all ...
0
votes
2answers
72 views

Unable to access group files even though user is part of the group

I am trying to access a directory test as user ayush. This directory is owned by user ayush and has group git The directory has permissions 0070, and group git, and ayush is a member of that group. ...
0
votes
2answers
29 views

delete folder for all users on Mac

I'm using below command to delete folder rm -rf /Users/*/Library/Group\ Containers/UBF8T346G9.Office/User\ Content.localized/Templates.localized/ The command is working only for single user. I want ...
0
votes
1answer
30 views

MESSAGE=anthony … USER=root <— Does this mean that the root user is the actual user but “anthony” will be displayed as being the user anyway?

I found this in /run/log/journal/... MESSAGE=anthony : TTY=pts/10 ; PWD=/ ; USER=root ; COMMAND=/usr/bin/find / -name *systemctI* I'm wondering what this means? I'm suspicious of this process "...
0
votes
1answer
34 views

Prevent FTP users from moving directories

I'm essentially trying to disable the mv command for FTP users on my CentOS server. I was thinking of editing their .bash_profile file and using this: alias mv="" But that feels system breaking. ...
1
vote
1answer
47 views

How should I create a user that I can use to safely run web apps etc.?

I'm doing this over ssh. I want to create a user that: can't be accessed via ssh can be impersonated with su doesn't have a password (is this a good practice?) can run web apps (specifically ...
0
votes
2answers
134 views

How do I switch users on Amazon Linux for EC2 instances?

I saw How to change to normal user in the command line when logged in as the root user? How to switch between users on one terminal? I have access to sudo. I tried [ec2-user@ip-172-99-99-99 Weekly ...
0
votes
0answers
43 views

User Lastlog login datetime did not update

I use lastlog to check latest login datetime. Here are steps I use to update my latest login datetime. 1) Try to Login to that user sudo su userA 2) Exit that user and login to root then check ...
0
votes
1answer
40 views

Group membership reported by id vs. contents of /etc/group

I have some issues with permission from various apps (such as accessing serial ports, despite being the dialout group, or contacting to Docker daemon, despite being in the docker group -- I think) and ...
0
votes
1answer
30 views

Why is my service running as root

I have an old laptop hooked up to my router running as linux box. I installed qbittorrent to run as a remote torrent box (to download linux distros of course) and I created a new user, "qbuser" for it ...
0
votes
1answer
130 views

Script or makefile to automate new user creation?

I'd like to have either a shell script or makefile to automate new user creation. I can't decide which of approach is better - a script or makefile? I have two types or users - both are SFTP chrooted,...
1
vote
1answer
30 views

Mass Assign Users to Groups

I have 2 text files, users.txt with a list of 1000 users and groups.txt with a list of 50 groups. I want to run a command that adds 30 users to each group (ex: users 1-30 to group 1, users 31-60 to ...
0
votes
0answers
27 views

FreeIPA User management: create user and activate user split in two roles

Objective: FreeIPA Helpdesk user A is permitted to create new stage users; new accounts are by default disabled. Activation requires any other member of Helpdesk than user A to go in and enable the ...
0
votes
2answers
70 views

How to preserve shell variables in script after changing user

How can I access same variables data after switching users? For example: artifact=archive.tar.gz workdir=/home/user echo "$workdir/$artifact" sudo -u otheruser bash echo "$workdir/$artifact" ...
1
vote
0answers
36 views

Fedora 29 - Switching to new user using “login” seems to fail

I just installed Fedora 29 (Xfce edition). The uservc was created during installation. I created another user as user2 (with the password: u) from the terminal but I am not able to log in with user2. ...
1
vote
0answers
28 views

Primary Group returns a number? [closed]

I'm somewhat sure that previously my primary group was something in text, but after running some stuff (I don't have admin, so I couldn't have changed it myself) all of a sudden my primary group ...
0
votes
0answers
17 views

Switch user providing own password

While switching to a privileged user, we enter the privileged user's password. Can I use my own password instead? Current flow: user1 -- > serviceAcctUser (serviceAcctUser password) Required: user1 -...
0
votes
1answer
69 views

Can't login as user

Everything works as root. I can startx, and get into iceWM. I'll be using i3, but that works aswell through lightdm if I login as "other" then write "root". Loging in in a TTY works aswell, but only ...
0
votes
1answer
41 views

Does POSIX guarantee certain usernames?

In the POSIX Definitions there is specific section 3.424, User Database, which defines what information should be related to each user ID. However through out the document, I couldn't find (at least ...
1
vote
2answers
56 views

User bypasses DenyUsers on Debian 8

So I have a user called spring and although my sshd_config says DenyUsers spring, I can login with PuTTY into that user. I restarted the SSH service of course. The non-comment lines from /etc/ssh/...
2
votes
1answer
55 views

ID inheritance – Which IDs?

I'm learning UNIX file permissions / ID inheritance and would like to clarify something: I have this list of permissions, users, groups and files: -rwxr-xr-x userA A foo -rw-rwsr-x userB B bar ...
0
votes
0answers
42 views

Communicating between userland and kernel space (KEXT) on MacOS

In order to make it easier to develop a kernel module, I am considering Loadable kernel modules (LKMs) on MacOS. This way you have a base kernel module and your main kernel module which is an LKM ...
1
vote
0answers
18 views

How to get notified of a USB plugin and manually specify the driver to use

I am trying to get at the bottom of how to intercept when a USB is plugged in, so that you can completely customize the experience of plugging it in and using it. Without anything else happening. That ...
2
votes
1answer
46 views

Keep access to a file after sudo

user1 runs sudo -u user2 SomeCommand. I want SomeCommand to be able to access the files of user1 (or just a specific directory or even a single file, if that's easier), without giving access to user2 (...