Difference between pages "File permissions" and "User:Duncan.britton"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Created page with "== chmod == You can change file permissions with: <console>$ chmod [r][g][u] [file]</console> [r] = number for root permissions, [g] = number for group permissions and [u] = n...")
 
 
Line 1: Line 1:
== chmod ==
+
{{Person
You can change file permissions with:
+
|Full name=Duncan Glover Britton
<console>$ chmod [r][g][u] [file]</console>
+
|Email=duncan.britton@outlook.com
[r] = number for root permissions, [g] = number for group permissions and [u] = number for user permissions.
+
|Geoloc=35.611237, -82.540115
<pre>7 = 4+2+1 (read/write/execute)
+
|Location name=Asheville, NC, United States of America
6 = 4+2 (read/write)
+
|Roles={{Role
5 = 4+1 (read/execute)
+
|Role type=Contributor
4 = 4 (read)
+
|Role desc=Wiki
3 = 2+1 (write/execute)
+
}}
2 = 2 (write)
+
|Maintains=
1 = 1 (execute)</pre>
+
|Blogs=
 
+
}}
== chown ==
+
You can change owner and group of file with:
+
<console># chown [user]:[group] [file]</console>
+
You can change owner of folder and files inside recursively with:
+
<console># chown -R [user]:[group] [folder]</console>
+
 
+
== gpasswd ==
+
You can add user to group with:
+
<console># gpasswd -a [user] [group]</console>
+
You can remove user from group with:
+
<console># gpasswd -d [user] [group]</console>
+
 
+
== useradd ==
+
You can add new user with:
+
<console># useradd -g users -G wheel,audio,portage -m [user]
+
# passwd [user]</console>
+
You can delete user with:
+
<console># userdel [user]</console>
+
 
+
== groupadd ==
+
You can add new group with:
+
<console># groupadd [group]</console>
+
You can delete group with:
+
<console># groupdel [group]</console>
+
 
+
[[Category:HOWTO]]
+

Revision as of 04:28, 11 January 2014

Duncan Britton

Contact

duncan.britton@outlook.com

Location

Loading map...
Asheville, NC, United States of America (35° 36' 40.4532", -82° 32' 24.414")