Difference between pages "File permissions" and "User:Votingelephant"

(Difference between pages)
 
(Created page with "{{Person |Full name=Adria Kelly |Email=votingelephant@outlook.ie |Geoloc=52.6680204, -8.6304975 |Location name=Limerick, Ireland |Roles={{Role |Role type=User |Role desc=A use...")
 
Line 1: Line 1:
== chmod ==
+
{{Person
You can change file permissions with:
+
|Full name=Adria Kelly
<console>
+
|Email=votingelephant@outlook.ie
$##bl## chmod [r][g][u] [file]
+
|Geoloc=52.6680204, -8.6304975
</console>
+
|Location name=Limerick, Ireland
[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=User
6 = 4+2 (read/write)
+
|Role desc=A user
5 = 4+1 (read/execute)
+
|Start date=2013/09/30
4 = 4 (read)
+
}}
3 = 2+1 (write/execute)
+
|Maintains=
2 = 2 (write)
+
|Blogs=
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]]
+
[[Category:First Steps]]
+

Latest revision as of 13:57, September 30, 2013


Contact

Location

Loading map...
Limerick, Ireland (52° 40' 4.8734", -8° 37' 49.791")