chgrp shell = unknown group shell

toy4x4

New Member
Joined
Feb 3, 2012
Messages
29
Reaction score
0
Location
VA
Ok so I am stumped as to why I get unknown group shell ... how can some files appear to belong to the group shell?

root@cdma_targa:/# cd /data/local/
cd /data/local/

root@cdma_targa:/data/local# mkdir logs <------------------Create a directory
mkdir logs

root@cdma_targa:/data/local# ls -l
ls -l
drwxrwxrwx root root 2012-04-06 11:31 logs <--------- view that the directory belongs to Root owner and root group
drwxrwx--x mot_tcmd shell 2012-02-04 09:16 12m
drwxrwx--x mot_tcmd shell 2012-03-09 21:24 tmp
drwxrwxrwx shell shell 2012-04-06 10:55 mystuff

root@cdma_targa:/data/local# chgrp shell logs < ------- Now try to set group to shell
chgrp shell logs
chgrp: unknown group shell < ------- command fails to set to group shell because it is a unknown group

root@cdma_targa:/data/local# su shell
su shell

shell@cdma_targa:/data/local$ mkdir log <------------------------- SU to Shell and then make a directory
mkdir log

shell@cdma_targa:/data/local$ ls -l
ls -l
drwxrwxrwx root root 2012-04-06 11:31 logs
drwxrwx--x mot_tcmd shell 2012-02-04 09:16 12m
drwxrwx--x mot_tcmd shell 2012-03-09 21:24 tmp
drwxrwxrwx shell shell 2012-04-06 10:55 mystuff
drwxrwxrwx shell shell 2012-04-06 11:32 log <-------- Looks like this directory belongs to a group named shell here???

shell@cdma_targa:/data/local$ chgrp shell logs
chgrp shell logs

chgrp: unknown group shell <----------- Try to again to chgrp to shell and again Unknown group shell
shell@cdma_targa:/data/local$

Any Ideas what am I doing? Is there really no group named shell?
 

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
It looks like root has no visibility of this shell group.
Try:
$ groups root
$ groups shell
$ groups mot_tcmd
to confirm.

What if you chown the logs dir to shell first, then su shell, then try chgrp the logs dir to shell?

Sent from my unrooted DroidX using Tapatalk
 

Dave12308

Silver Member
Joined
Nov 15, 2009
Messages
3,251
Reaction score
50
Excuse the stupid question, but what on earth are you trying to accomplish here?
 

Natey2

Senior Member
Joined
Oct 23, 2010
Messages
1,308
Reaction score
5
Looking at the script, I'd say (s)he is trying to change the group of the dir "logs" from "root" to "shell".

Sent from my unrooted DroidX using Tapatalk
 
Top