033-Unit 10 Advanced Topics in Users ,Groups and Permissions
2009-08-11 21:34
513 查看
User and Group ID Numbers
/etc/passwd :User database
/etc/shadow : Password database
/etc/group : Group database
System User and Group : 1-499 for system
changing your indentity : chang password : passwd command
passwd --status user1
su user1 切换账号
su - user1 切换账号和环境变量(run login shell)
whoami command
groups command
id command
users , who , w command to display users
last command show login history
default permission for file is 666 ; for directory is 777
umask command : default root 022 , other 002 ; so for root file is 644 , directory is 755 ;
and other user file is 664 , directory is 755
Special Permissions : suid 4(u+s), sgid 2(g+s), sticky 1(0+t) 小写有x权限,大写没有x权限
chmod u+s xxx.txt or chmod 4755 xxx.txt
suid : run as command owner user (ex. /bin/ping)
sticky bit : only owner and root cat remove files in the directory
sgid : only members of the group can build files in the directory
/etc/passwd :User database
/etc/shadow : Password database
/etc/group : Group database
System User and Group : 1-499 for system
changing your indentity : chang password : passwd command
passwd --status user1
su user1 切换账号
su - user1 切换账号和环境变量(run login shell)
whoami command
groups command
id command
users , who , w command to display users
last command show login history
default permission for file is 666 ; for directory is 777
umask command : default root 022 , other 002 ; so for root file is 644 , directory is 755 ;
and other user file is 664 , directory is 755
Special Permissions : suid 4(u+s), sgid 2(g+s), sticky 1(0+t) 小写有x权限,大写没有x权限
chmod u+s xxx.txt or chmod 4755 xxx.txt
suid : run as command owner user (ex. /bin/ping)
sticky bit : only owner and root cat remove files in the directory
sgid : only members of the group can build files in the directory
相关文章推荐
- rche 033----unit 10-----advances topics in users,groups and permissions
- RH033 Unit15 Advanced Topics in Users, Groups and Permissions
- RH033 Unit15 Advanced Topics in Users, Groups and Permissions
- RH033 Unit 5 Users,Groups and Permissions
- Lesson4 -Users, Groups and Permissions in Linux
- 033-Unit 6 Users and Groups
- Users and Groups in Linux
- users,groups and permissions
- Top 10 steps to optimize data access in SQL Server: Part III (Apply advanced indexing and denormalization)
- RH033 Unit5 Users, Groups and Permissions
- RH033 Unit5 Users, Groups and Permissions
- Implementing the Repository and Unit of Work Patterns in an ASP.NET MVC Application (9 of 10)
- stikked - An advanced and beautiful pastebin written in PHP
- rche 033----unit 8 the linux filesystem in-depth
- How To Create a New User and Grant Permissions in MySQL
- Interesting Evolutions of Advanced Topics in Computer Vision
- Programming in Objective-C 学习笔记10——Cocoa, Cocoa Touch and the iOS SDK
- SMBv1 is not installed by default in Windows 10 Fall Creators Update 2017 and Windows Server, Semi-annual Channel
- Spring Cloud(2) |No plugin found for prefix 'docker' in the current project and in the plugin groups
- spaCy is a library for advanced natural language processing in Python and Cython:spaCy 工业级自然语言处理工具