Let's say I have 2 users :
user1 and user2
I would like to give user1 the same permissions as user2 but I don't want user2 having the same permission as user 1.
Sorry for my english. Thank you
Let's say I have 2 users :
user1 and user2
I would like to give user1 the same permissions as user2 but I don't want user2 having the same permission as user 1.
Sorry for my english. Thank you
(I'll call user1 boss and user2 minion, to avoid the risk of typos that would invert the meaning).
You mean you want boss to be able to access minion's files? Add boss to the minion group. By default, on Ubuntu, most of minion's files are group-readable and group-writable. There's probably a way to do this in the GUI, but I only know the command line way:
sudo adduser boss minion
Minion can still create private files if he wants. If want to allow boss to run arbitrary commands as minion, this can be done through sudo. Run sudo visudo and add the following line:
boss ALL = (minion) ALL
Then boss can run sudo -u minion somecommand.