Profiel van JPJP's Memory DumpFoto'sWeblogLijstenMeer ![]() | Help |
|
17 november Linux help commandsSome useful commands
RE-CONFIGURE
sudo dpkg-reconfigure
ifconfig == ipconfig from windwos
Stop XWindows
keyboard shortcut:Ctr-Alt-F1 to F6 will start consoles 1 to 6
Ctr-Alt-F7 will bring you back to GUI
remote longing is done like this:
add a user MIn user (guest) useradd -u 501 -m -s /bin/bash -g users looser1 Max user (admin) useradd -u 999 -m -s /bin/bash -g users looser1 In the terminal this would be: sudo adduser $user admin, where you replace $user with the name of the user. if you want to avoid typing SUDO for each command then use: sudo -i
How to set/change/enable root user password sudo passwd root How to disable root user account sudo passwd -l root How to allow root user to login into GNOME System -> Administration -> Login Window Login Windows Preferences Security Tab -> Security -> Allow local system administrator login (Checked) How to switch to root user in Console mode sudo -s -H or sudo su How to add/edit/delete system users System -> Administration -> Users and Groups Users and Groups Users Tab -> Add User…/Properties/Delete or sudo useradd matt How to add/edit/delete system groups System -> Administration -> Users and Groups Users and Groups Groups Tab -> Add Group…/Properties/Delete How to automatic login into GNOME (not secure) System -> Administration -> Login Window Security Tab -> Enable Automatic Login (Checked) Now choose a user from the drop-down menu. How to allow more sudoers sudo adduser a_username admin How to change files/folders permissions Right click on files/folders -> Properties Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others) How to change files/folders ownership sudo chown system_username /location_of_files_or_folders If you want to change ownership of all containing files and folders recursively, use the -R option like this: sudo chown -R system_username /location_of_files_or_folders How to change files/folders group ownership sudo chgrp system_groupname /location_of_files_or_folders If you want to change group ownership of all containing files and folders recursively, use the -R option like this: sudo chgrp -R system_username /location_of_files_or_folders |
|
|