chown vp_finance payroll.doc
If you want to change ownership for group accounting, execute the command
chown vp_finance.accounting payroll.doc
In case you want to transfer ownership of all directories and internal files, execute the chown command with the option -R:
chown -R vp_marketing.marketing / marketing / June
chown -R .marketing / marketing / June
In addition, if you want to transfer ownership without root, you can use the chgrp command, but now you have to belong to a group that has ownership and group rights.
To manage files and folders on Linux, in addition to the Nautilus File System utility, we can install and use Webmin to manage files and folders using the web interface. However, it is recommended to use the latest version to ensure system safety. Download and install Webmin at www.webmin.com
On Windows we can see processes running with taskmanager, but for Linux systems we use the ps command to display active processes.
To see more details, use the aux option with:
We can use the top command to see the list of active processes that are updated by the specified time. For example, to refresh the list of displayed processes after 7 seconds we use the command:
# top d 7
In addition, using the System Monitor graphical interface is also a good solution for managing and reviewing the operating processes as shown below:
View hard disk usage information using the df -h command:
Mounting device, drive
To be able to use drives like CDROM, FDD . we need to mount these drives with the mount command like:
# mount / dev / cdrom / mnt / cdrom
The order result will be :
Mount: block device / dev / cdrom is write-protected. mounting
read-only
However, for new Linux versions, the use of CDROM is mostly mounted automatically by the system. In addition, we can mount cdrom or usb drives, fdd to the directories we create as:
mkdir / cdrom
mount / dev / cdrom / cdrom
And after using it, we can use the umount command before removing the disk (there are many cases that the CD must be removed by turning off the power).
Access rights
All files of a Linux file system are linked with different access rights according to each user of the system, regarding read, write and execute operations. The system administrator (super user "root") has access to any file of the system. Each file is owned by a certain person and attached access restrictions depending on the user and attached to a user group.
So each file is secured by 3 sets of access rights that are attached to the following 3 user groups, in order from high to low:
Each access set will specify the actual access rights to the files and directories as follows:
Permissions on Linux systems can be described through numbers from 0 to 7 in the decimal system. For example, a user or group has the right to R (read), W (write), E (execute) for 1 file / folder, which is denoted by 1, otherwise 0 if there is no corresponding permission (-). And with the conversion from binary to decimal we have the following table of values:
So if a user / group has rights to certain files / folders, it corresponds to establishment 111 in binary or 7 in the decimal system, so 777 is allowed to allow RWE for all.
Users and user groups
To add users, or groups of users, to the system, you can use the Users And Groups program, in the System menu -> Administration -> Users and Groups .
To add a new user, click on Add user , fill in the required information and then click the OK button. To edit the properties of each user, you can click the Properties button in the Users main window.
To add a new group of users, select the Groups tab tab and click on Add group . Specify the name of the new group and, if desired, change the number assigned to the group (Group ID). If you plan to use some already used Group IDs, the system will notify you.
To add users to the newly created group, simply select a user from the list on the left and click the Add button. Wanting to exclude a user from a group is as simple as adding: after selecting the user name in the right window, click on the button you have written.
Remove . When done, click the OK button to finish and actually create a new user group, along with the users of that group.
To edit the properties of a group of users, select the name of a group in the Groups window and click the button that says Properties .
To completely delete a user, or a group of users, from the system, select the user name or user group name you want to delete and click the Delete button .
Similar to the Windows system, when installing Linux (FC Core) will create an account with administrative rights and can be used to create other accounts, this is the most advanced account called root. . To grant access to the system we need to create user accounts, and each user account is assigned a UID. Accounts with the same attributes will be grouped as on Windows systems and each group will have its own GIDs.
On Linux systems we can view existing Users through the contents of the file / etc / passwd as shown below:
In this passwd file, we see that there are many different filed records such as:
When a new account is created it will be assigned a UID, starting from 500 onwards and increasing as new accounts are created.
As with Windows operating systems, after installing some default accounts and groups will be created as:
Default users
The default group
Create User and Group
We can create user accounts on Linux using the command line or graphical interface. To create a Linux1 user account using the command line, do the following:
useradd -g Users Linux1
passwd Linux1
New password: qwerty
Retype new password: qwerty
If you want to identify home folders and shells for users, you can use the -d and -s options
The following example will create a group with GID of 1024 (the -g option used to determine GID, if not using this option, the system will automatically determine the GID for the group in ascending order).
1. To Add a New User on a Linux system, click System => Administration => Users and Groups .
2. User management interface is as follows:
3. Click Add Group in the toolbar then create 2 group finance and managers as shown below:
4. Select the Users tab and select Add User to create Sam Randolph accounts with the following information:
User Name srandolp
Full Name Sam Randolph
Password Fishing123
Confirm Password F ishing123
Click OK to finish
Assign rights on files and folders
1. Create a folder called Share by double-clicking the Computer icon and then opening File System . Right-click and select Create Folder .
2. Enter the folder name as Shares and press Enter .
3. Next create two sub-folders: Finance Reports and Managers in Shares Folder
4. Now that we will assign the appropriate permissions to the users on the newly created folders, right-click on the Finance Reports folder and select Properties . On the computer window select the Permissions tab (if you do not see the Permissions tab, restart the system)
5. Change the permissions on this folder as follows:
File Group = finance
Group Permissions = Read , Write , and Execute
Other Permissions = Read only (if you want to browse the directory, select Read & Execute)
After assigning permissions as above, Group Finance can access this folder and other users only have Read permissions.
6. Similarly, assign permissions to Managers folder as follows:
File Group = managers
Group Permissions = Read , Write , and Execute
Other Permissions = (none)
To check the results of assigning permissions to folders and groups, log in with the respective accounts and perform file, folder, read or delete files .
Good luck!