I am facing the below problem in linux kernel 2.6.18-7.1
I created user "BBC" using
adduser -Dafter this
I created group "BBCGROUP" using
added the user "BBC" to the group "BBCGROUP" using
addgroup BBC BBCGROUPafter this
then created the directory
mkdir /usr1 [ as root ]
I created file /usr1/test.txt by using echo "hello" > /usr1/test.txt
ls -l /usr1 gives "-rwxrwx--x 1 root root 5 Sep 5 14:01 test.txt"
chmod -R 771 /usr1
chown -R :BBCGROUP /usr1.
After this I expect, user "BBC" able to read/write/execute files under /usr1 .
Now "ls -l /usr1 " gives -rwxrwx--x 1 root BBCGROUP 5 Sep 5 14:03 test.txt 9)I changed the user to "BBC" by "su -s /bin/sh BBC" 10) id command shows uid=1010(BBC) gid=1010(BBC) 11) cd /usr1 12) I tried to modify the file echo "HELLO1" > test.txt or touch test.txt I getting error as "sh: can't create /usr1/test.txt: Permission denied" for user BBC.
This is the basic problem, I am facing in embedded system, any solution for this. Any configuration need to be changed? Same thing working fine in desktop linux. Any info please to solve this.