If you want to get permissions for another user as root.
Run the below command
sudo -U USERHERE -l
If you want to get permissions for another user as root.
Run the below command
sudo -U USERHERE -l
To allow directory permissions to anyone to write.
Run the below
chmod 0777 /tmp/directory
Quick command to find out the chmod number for a file if your having to duplicate permissions to another file.
stat -c %a file.txt