chgrp shell = unknown group shell

Discussion in 'Android Forum' started by toy4x4, Apr 6, 2012.

DroidForums.net is the premier Android Forum - Registered Users do not see these ads. Please Register - It's Free!
  1. toy4x4
    Offline

    toy4x4 New Member

    Joined:
    Feb 3, 2012
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    VA
    Ratings:
    +0
    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?
  2. Natey2
    Offline

    Natey2 Active Member

    Joined:
    Oct 23, 2010
    Messages:
    1,339
    Likes Received:
    5
    Trophy Points:
    38
    Ratings:
    +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
  3. Dave12308
    Offline

    Dave12308 Silver Member

    Joined:
    Nov 15, 2009
    Messages:
    3,269
    Likes Received:
    50
    Trophy Points:
    113
    Ratings:
    +50
    Excuse the stupid question, but what on earth are you trying to accomplish here?
  4. Natey2
    Offline

    Natey2 Active Member

    Joined:
    Oct 23, 2010
    Messages:
    1,339
    Likes Received:
    5
    Trophy Points:
    38
    Ratings:
    +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
Similar Threads
  1. Adhd
    Replies:
    1
    Views:
    2,672
  2. CC268
    Replies:
    16
    Views:
    4,580
  3. pilot25
    Replies:
    4
    Views:
    682
  4. funnyfish
    Replies:
    11
    Views:
    2,327
Loading...
Search tags for this page

adb chgrp

,
adb shell change group
,
adb shell chgrp
,

android chgrp

,

android shell group

,
android unknow group root
,

chgrp android

,
chgrp unknown group
,
chgrp: unknown group wifi
,
unknown group root