Questions tagged [usermod]
25 questions
1
vote
1 answer
user that exists doesn't exist when setting chroot with usermod
This is with Ubuntu Server 20.04. Here's my terminal session:
joek@comp1:/home/user4$ sudo usermod -R /home/user4 user4
usermod: user 'user4' does not exist
joek@comp1:/home/user4$ sudo useradd user4
useradd: user 'user4' already…
![](../../users/profiles/465499.webp)
jkoop
- 11
- 3
0
votes
0 answers
Is changing roots primary group dangerous?
Currently in CentOS 7 the root user's primary group is root. What harm would there be in changing roots primary group to group.
usermod -a -g group root
The purpose just to clarify in case there is a much better way of handling this is to make sure…
![](../../users/profiles/108441.webp)
syntencoist
- 21
- 4
0
votes
2 answers
SSH tunneling between two server
I'm trying to create SSH tunnel between two VPS for Secure MySQL Replication.
I follow these steps (read only Step 1: Setup SSH Tunneling):
https://www.digitalocean.com/community/tutorials/how-to-secure-mysql-replication-using-ssh-on-a-vps
Both…
![](../../users/profiles/273553.webp)
vinsa
- 101
- 3
0
votes
1 answer
Why can a non-root account access my debian server's base directory?
I have an account on debian named 'usera'. 'usera' has a home directory of /home/whatever
When I log in to WinSCP using 'usera' and its credentials - I am able to go "up" one directory into /home and then eventually into '/'. I specifically made…
![](../../users/profiles/90415.webp)
Sam Levin
- 500
- 1
- 4
- 11
0
votes
2 answers
403 Forbidden warning after installing/enabling usermod
I'd like to have per-user web directories on my Linux Mint workstation in the same general way I have had on OS X. In order to do this, I created a public_html directory in ~/. and chmod'd it to 755 and installed the userdir mod:
sudo a2enmod…
![](../../users/profiles/155320.webp)
huertanix
- 197
- 2
- 11
0
votes
1 answer
Adding existing user to existing group and providing permissions
can someone shed some light on this issue
I've set up and installed vsftpd. Created a user ftp-user and created a home directory, so they can log in, and just have access to drop their files here.
>> sudo useradd -d /home/ftp/ftp-user -m…
![](../../users/profiles/81985.webp)
williamsowen
- 1,157
- 3
- 16
- 24
0
votes
1 answer
Listening to 80 port with non-root Glassfish on Centos
I use Glassfish Stack to manage applications. I run Glassfish on CentOS with non-root user. Therefor I am not able to open 80 port as the ports under 1024 are accessibly only by root users.
There is a solution to add privilege in role based access…
![](../../users/profiles/34410.webp)
Edvinas Bartkus
- 103
- 2
0
votes
0 answers
SUSE 11 - Unable to Lock Passwordless User
I'm trying to add a new dedicated, passwordless Ansible user to a small number of old SUSE 11 boxes, but I'm having problems unlocking the after creation. I initially thought this was because the distro didn't like having a user with no password…
![](../../users/profiles/155377.webp)
motorleague
- 33
- 5
0
votes
1 answer
usermod cannot lock /etc/passwd when usermod is in /etc/sudoers as NOPASSWD
Need to be able to execute 'usermod' without sudo, so that a script on a remote machine may disable and lock a userid on the instance host.
Adding 'nopasswd' and the command to the wheel group in sudoers on the instance host should work, if I'm…
![](../../users/profiles/264189.webp)
Jason
- 1
- 1
-2
votes
1 answer
Change group gid for new group
I have added a new group to my system, which I will add my user to, so my UID/GIDs are sync'ed with my company's server when using NFS (fixing write permission issues).
I've created a new 'production' group but when I try to change the GID, usermod…
![](../../users/profiles/47790.webp)
Greg K
- 169
- 3
- 12