You are not logged in.
Pages: 1
While trying to install a printer on my laptop somehow I manage to change the group all my files belong to.
[netlak@soulrebel ~]$ ls -l
total 4224
-rw-r--r-- 1 netlak sys 142 nov 15 17:54 cho.csv~
-rw-r--r-- 1 netlak sys 2130487 feb 20 17:44 Composite_deconv.tif
-rw-r--r-- 1 netlak sys 2019706 oct 5 19:30 Composite.tif
-rw-r--r-- 1 netlak sys 19 feb 24 14:09 dentista
drwx------ 7 netlak sys 12288 feb 29 17:20 Descargas
drwxr-xr-x 2 netlak sys 4096 dic 24 11:37 Desktop
-rwxr-xr-x 1 netlak sys 284 feb 28 15:52 diow
-rwxr-xr-x 1 netlak sys 283 feb 28 15:49 diow~
drwx------ 8 netlak sys 4096 feb 28 11:18 Documentos
drwx------ 5 netlak sys 4096 mar 1 10:06 Dropbox
drwx------ 6 netlak sys 4096 nov 15 17:17 Experimentos
drwx------ 5 netlak sys 4096 feb 20 17:05 Imágenes
drwx------ 14 netlak sys 4096 feb 20 17:10 Labo
-rw-r--r-- 1 netlak sys 6221 sep 15 16:57 lulu.csv~
drwx------ 78 netlak sys 4096 oct 23 20:58 Música
Where it says "sys" group it used to say "users" and I checked that on another pc where they all belong to the users group. I haven't noticed any strange behavior but I would like to know whether this is right or not and if so how to revert the changes.
Thanks in advanced, José.
Last edited by boina (2012-03-01 18:38:49)
Offline
# chgrp -R users /home/netlak
Should take care of that for you. Change "/home/netlak" to whatever directory is affected obviously.
Burninate!
Offline
Great!! I did that and reverted the changes and is nice to see it back as it was,n although I don't understand what is the sys group or in any case the users group.
Thanks for your help, jose.
Offline
For some more info about the different groups; you can always take a look here.
Burninate!
Offline
Thanks for your help!!
Offline
I understand what the groups and solved the issue posted initially. The problem is that whenever I create a new file or directory the group shown is "sys" and not "users". How can I change this behavior??
Offline
Can you post the output of this command
cat /etc/passwd | grep netlak
. Looks like somehow you changed the default group for your user to sys.
Offline
Here is the output:
[netlak@soulrebel ~]$ cat /etc/passwd | grep netlak
netlak:x:1000:3:José:/home/netlak:/bin/bash
Offline
Here is the output:
[netlak@soulrebel ~]$ cat /etc/passwd | grep netlak netlak:x:1000:3:José:/home/netlak:/bin/bash
NB: this is a useless use of cat, it should be:
grep netlak /etc/passwd
Now, if you want to change your default group back to "users", do:
sudo usermod -g $(awk -F':' '/users/ {print $3}' /etc/group) $(whoami)
The awk statement seeks for lines containing "users" in the file "/etc/group" and prints out the third semicolon-delimited field. The effect of this is to return the gid of the users group.
Last edited by /dev/zero (2012-03-01 17:59:40)
Offline
Well, finally I got it. It was a very simple solution:
usermod -g users netlak
Restart the session and listo!!
Thanks for your help!!
Last edited by boina (2012-03-01 18:38:30)
Offline
Pages: 1