When I want to grant access to another user to my file, I use chmod 777 file, but if I want to be sure I'm granting permission just for that user, how can I do it?-- updateThe file is owned by root, so it's mine if I access it with sudo, I suppose (or maybe I'm confused.. please correct me).I want to share a folder called /Data in the root. The other user I want to share it is the root of an embedded system, which I'm accessing with telnet and NFS.The files inside /Data are generated by me, and every time I generate them, I have to use the command chmod 777 /Data so I can access them from the embedded system.I'm using Ubuntu in my computer, and a compiled-here-linux in the embedded system.
How do I give all the permissions to a file for a single user that's not me?
shell;shell script;permissions;users
You need to find a group that only you and that user is part of, and give correct permission to the group, not the world.Could be easier with access control lists, if available.