What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

chgrp shell = unknown group shell

toy4x4

New Member
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?
 
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
 
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
 
Back
Top