You can get a User’s User ID (UID), main Group ID (GID) and Supplementary Groups using the id command.
id useraccount
File permissions change date
Recently we wanted to check when did the permissions of a specific file changed. Unfortunately, there exists no such flag and we do not have a 100% working solution for it. What we did was to check the last modification time of the file status information (ctime) using the ls…
In "Bash"
Bash: How to execute from root account a script as another user
There are times that you need to execute a script as another user, usually to make sure you do not mess up the access rights of the files that will be produced after the execution of the script. An easy way to do it is using the command su (su…
In "Bash"
Connect with ssh wihout using a password / without login procedure / with passwordless login / with no authentication
From your machine issue the following commands in order to let the server know of your information and allow you to login without going through the interactive authentication phase. ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub useraccount@boxname *NOTE: This method does not allow to connect the other way around without credentials.…
In "Bash"
This post is also available in: Greek


