This might work
1. List groups from the file /etc/group:
      $ cat /etc/group
Let's say I find a group: user1:x:1000:
If I wanted another user to access user1's files I could try...

2. If you have sudo set up use the usermod command like so (very important not to omit the -a as it means 'append' not 'replace.') $ sudo usermod -a -G user1 user2 (I am putting user2 into the user1 group)

Now user2 is in user1's group

if user1 is not a sudoer then I would have to log in to the root account by

     $ su
       and enter roots password

then run simply

     # usermod -a -G user1 user2

Looking at my Desktop folder by opening a terminal on the Desktop and using
     $ ls -als
I see listed (ls) a graphic file: 4 -rw-r--r--. 1 user1 user1 3448 Jun 30 07:51 systemd.svg -rw-r-r-- means owner (gsmyli) can read and write to the systemd.svg, owner's group can read the file.


If user1 is set up as a sudoer then he can always look at user2's files by using the sudo command.

I am sure's lots of other ways to accomplish what you want.

Reply via email to