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

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

Revision as of 04:28, January 11, 2014

Duncan Britton

Contact

Asheville, NC, United States of America (35.611237, -82.540115The type of this property is invalid)