Create group/user
[root]# groupadd webuser
[root]# useradd -g me126904 webuser
Change permission
[root]# chmod a+x myscript.sh
[root]# chmod g-rwx yourscript.sh
[root]# chmod u+rwx g-rx o-rxw yourscript.sh
Change ownership
[root]# chown -R me126904.webuser phpweb/
Change group
[root]# chgrp -hR users /phpweb
Delete user
[root]# userdel -r me126904
Check current user
[root]# who
No comments:
Post a Comment