Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Welcome

to

Server Administration and Cloud Management


Course

1
Server Administration and Cloud Management

Institution: BASIS Institute of Technology & Management (BITM)

Association: BASIS
Supported by:
Skills for Employment Investment Project (SEIP)
Finance Division, Ministry of Finance, Govt. of Bangladesh.

2
Md Rubel Hossain
Server Administration and Cloud Management
Trainer @
BASIS Institute of Technology & Management (BITM)

Call at 01710-451829
Email : rubeldonarman@gmail.com
Skype : rubeldonarman

Facebook : https://www.facebook.com/rubeldon04
LinkedIn : https://www.linkedin.com/in/rubeldonarman
Blog : https://serveradminandcloud.blogspot.com/
3
Basic File Permission

4
Permissions
• Permissions are use to create secure environment against from
unauthorized users

• In Linux Platforms permissions are secured by the default


mechanism called Umask
• Umask Value for normal user : 0002
• Umask Value for root user : 0022

• Permissions are mainly use in sharing data environment which can


be implement in Linux by using some servers like NFS and Samba

5
File and Directory Attributes
[root@#localhost Desktop]# ls -ls
- rw-r--r-- 1 root root 0 Jan 9 13:49 file1
1 2 3 4 5 6 7 8

1 Type
2 Permission(Access Levels)
3 Links
4 Owner
5 Owner's Primary Group
6 Size(Bytes)
7 Modification Date & Time
8 File/Directory Name

6
Access Levels
- rw- r-- r--
1 2 3 4

1 Type (Files, Directories, links)


2 Owner
3 Owner's Primary Groups
4 Others

7
Access Modes
Permission
1. Absolute/Numeric Mode (4 2 1 [weight] )
2. Symbolic Mode (r w x)

8
Default Permissions

By Default Permissions :
For system file : 0666
For system directory : 0777

Umask Value for normar user : 0002


Umask Value for root user : 0022

9
Default Permissions Calculation
For Normal User:
File: Directory:
0666 0777
0002 0002
0022
0664 0775
0755
For root User:
File: Directory:
0666 0777
0022 0022
0644 0755
10
Modifying the Permissions

[root@#svr ~]#chmod <permissions/weight> <file/directory>

11
Example of Permission

1.Absolute/Numeric Mode
[root@#svr ~]#chmod <754> <object>
[root@#svr ~]#chmod 754 dir1

2.Symbolic Mode
[root@#svr ~]#chmod <o+w> <object>
[root@#svr ~]#chmod u=rwx,g=rx,o=r dir2

12
Change Ownership of Files and Directories:

Changing the ownership of a file or directory


[root@#svr ~]#chown <username> <file/dir>

Changing the group ownership of a file or directory


[root@#svr ~]#chgrp <groupname> <file/dir>

13
Thanks

14
Q&A

15

You might also like