Questions tagged [usermod]
The usermod tag has no usage guidance.
25
questions
0
votes
0
answers
8
views
Narrow Down Ubuntu Lock And Active User?
I have been trying to create a bash Script to Locked and Active ,locked User.Can anyone please guide me to narrow down locked and Active User list.tnx
1
vote
1
answer
2k
views
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
...
0
votes
1
answer
3k
views
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 ...
0
votes
0
answers
198
views
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 ...
1
vote
1
answer
6k
views
Change default home dir of user
I want to change the default home directory of a user from this:
User: john
Default home: /home/john
To this:
User: john
Home: /var/www/project/new-home
How could i do that?
What i've tried so ...
1
vote
1
answer
803
views
Join existing linux user to AD domain
I succesfully join fedora and ubuntu thanks to realmd package.
After I join the machine I can also log with a domain user with no problem.
What I'd like to do now is to move and existing local user to ...
0
votes
2
answers
811
views
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-...
1
vote
1
answer
2k
views
Exim4 panic log: "Failed to get user name for uid 1001"
I have a router which delivers mail to certain domains into a MailDir for the domain, and uses a domain:user map to give file ownership to the right user.
The problem is that since updating the uid ...
7
votes
2
answers
40k
views
Add a Home directory for already created user when no direct root login available
I have a user account provided by client with unrestricted sudo access, but this user has no home directory. I want to create one, but I'm not sure how to go about it.
I tried logging in as my ...
1
vote
1
answer
227
views
recovering from a plaintext password in usermod -p
My small office's server was under attack yesterday and today and apparently the hacker gained access through a weak password (i.e. I am to blame entirely). The moment I noticed this, I fysically ...
-2
votes
1
answer
185
views
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'...
2
votes
1
answer
262
views
Apache 2.4.6 (User mod 403)
Hello (Sorry for my bad english)
I have a big problem on my server (Debian)
I have do the upgrade and for all my clients (mysite.fr/~user) I have an error 403 :
In /etc/log/apache2/error.log
[Mon ...
0
votes
1
answer
90
views
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 ...
1
vote
1
answer
52
views
why apache still write files it did have permissions to after I exclude it from the group that has permission when it was running
On the server, I have a file called upload and
its state was as follows:
drwx--x--- 12 bob bob 4096 JUL 20 19:07 upload
I use this file to be the destination file of the PHP function ...
1
vote
1
answer
4k
views
Can't change user's details with `usermod`, it claims they are still logged in
I can't change a user's home directory using usermod;
[root@server ~]# usermod -d /some/opther/path userfoo
usermod: user userfoo is currently logged in
[root@server ~]$ who
myuser pts/0 2013-...
7
votes
1
answer
8k
views
is it safe to group a user under "nobody" group
I have created a group called "devs". All our coders are grouped under "devs" so that they can access our websites which are all under public_html folder.
I changed the group of public_hml to "devs", ...
1
vote
2
answers
2k
views
Changed shell and can't ssh login to root account
I used the command usermod -s /bin/fish root to change the root user's shell and now I can't login to my root account. Why is this happening?
I am trying to SSH into a server running Ubuntu through ...
0
votes
2
answers
6k
views
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 ...
1
vote
1
answer
3k
views
Root password change using usermod
I'm trying to implement an automated root password change for our Linux boxes. I'm generating a hash in the script since users will be able to see the contents of the script.
I found that you can ...
5
votes
1
answer
21k
views
Add www-data to group
I have a directory with the following details:
drwxrwxr-x 6 root devs 4.0K Sep 9 14:57 project_dev
Now I want www-data (Apache daemon) to have an access to this directory, so in my mind I am ...
2
votes
2
answers
9k
views
How to add LDAP user to existing group?
I'm attempting to add some of our LDAP users to a locally defined group on our RHEL server, however I get an error stating that the LDAP user is not found in /etc/passwd.
What would be the best way ...
0
votes
1
answer
1k
views
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.
>>...
1
vote
2
answers
548
views
User wants PHP to be able to write files in his directory
The user wants to let PHP write files in his /home/ directory, he is advising me to do usermod -a -G www-data username where username is his username. I wasn't sure if this was a security issue or not....
0
votes
1
answer
2k
views
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 ...
20
votes
6
answers
21k
views
Default groups assigned to the first user in Ubuntu Server 8.04?
I just made a silly mistake on my Ubuntu Server box: I added myself to a group using usermod -G, after which I discovered the -a option...
The result is that I am now out of the admin group, and ...