Linux User Administration
Note, I’m using Debian Sarge 3.1
Groups and Users
Being a bit of a Linux amateur, here’s some useful pointers for creating linux users.
Listing Existing Groups
more /etc/group
Listing Groups a User Is In
groups someuser
Changing Groups for a User
usermod -Gsys,adm,users -L someuser
Adding Group
groupadd customers
Allowing Group to Read/Write Files In Folder
chgrp -R somegroup somedir/
chmod -R g+rw somedir/
When wanting to allow people to CRUD files in a folder, 777 is a common one to use!?
chmod -R 777 somedir/
Adding Some Users
useradd -gusers -pxxxxx -s/bin/bash -Gcustomers someuser
or
useradd -gusers -pxxxxx -s/bin/bash -Groot someadmin
Changing Someones Password
passwd someuser
SSH Troubleshooting
If users can’t get in, then might be useful to look here:
pico /etc/pam.d/ssh
Also, sshing in from the actual host that you’d want remote access to. This is good to check tha the account is working and the password is as expected.
Showing version
cat /etc/issue
cat /proc/version
Comments
-
Are you from Helsby? Do you have a sister called Marnie?