we can give permission by using numaric command like 777:
Description: for read - 4, write - 2, execute -1. all together 7. for 777 means 1st 7 for user, 2nd for group and 3rd for all user
$ chmod 777 fileName [all permission for user,group and all]
$ chmod 742 fileName [all permission for user, read for group, write for all]
$ chmod 124 fileName [execute permission for user, write for group, read for all]
$ chmod 711 fileName [ all permission for user, execute for groups and all]
modifying ownership permission :
$ sudo chown userName fileName [it will change files user ownership]
$ sudo chgrp groupName fileName [it will change files group ownership]
$ sudo chmod userName:groupName fileName [it will change both user & group ownership]
if you want to change your user password:
$ passwd
to see our system name :
$ uname
to see our system name and details:
$ uname -a
$ uname -r [to check only version numaric ]
add a user to a group :
$ sudo usermod -a -g groupName userName
remove a user from a group:
$ sudo deluser userName groupName
Shows information of all the users logged in:
$ finger
show information of a particular user:
$ finger userName
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)