Between 2 line intervals:
sed -n 2601,2700p 8k_users.csv > logins27.csv
#####Add New User
useradd -d /home/jsmith jsmith
Edit the /etc/password as root user and edit the entry for the new user. Update with the full name
jsmith:x:507:507:John Smith:/home/jsmith:/bin/bash
#####Force new user to change password on next login:
chage -d 0 jsmith
```````````
Edit the ``/etc/default/useradd`` file and set the ``EXPIRE=0`` to force all new users to change password by default when using the ``useradd`` command.
Find all files owned by user
````
find . -user l046240
````
To remove a user, use the command:
````
userdel -r l046240
````
rsync -avz test_rsync/ [email protected]:/tmp/test_sync_dwo
Setup VNC Server:
yum install tigervnc-server
Edit the vncserver config file:
vi /etc/sysconfig/vncservers
Add username:
[...]
VNCSERVERS="2:weblogic 3:aimtiaz"
VNCSERVERARGS[2]="-geometry 1200x1024 -nolisten tcp -localhost"
Login as the user you want VNC in as and then set the password using vncpasswd
command.
yum groupinstall "Development Tools"
yum groupinstall "X Window System" "Desktop"
yum groupinstall "GNOME Desktop Environment"