Almost solved not respecting group permisions for new groups after group #16 on NFS mounted dirs. was: [CentOS] I am confused. Chmod / chown issues?

Jason Pyeron jpyeron at pdinc.us
Mon Jan 7 23:53:54 UTC 2008


This is almost solved.


Test case:


[root at mail asdasd]# for i in `id jpyeron | perl -pe 's/,/\n/g'| perl -ne
'm/\((.+?)\)/g and print $1,"\n"'`; do mkdir -m 750 $i && chgrp $i $i; done
[root at mail asdasd]# su jpyeron
[jpyeron at mail asdasd]$ for i in *; do pushd $i; popd 2> /dev/null >
/dev/null; done
/home/asdasd/aepi /home/asdasd
bash: pushd: ai: Permission denied
/home/asdasd/apache /home/asdasd
/home/asdasd/assistantchef /home/asdasd
/home/asdasd/burtshare /home/asdasd
bash: pushd: busdev: Permission denied
/home/asdasd/c600312 /home/asdasd
/home/asdasd/chinalane /home/asdasd
/home/asdasd/cvs /home/asdasd
/home/asdasd/dadweb /home/asdasd
/home/asdasd/dante /home/asdasd
/home/asdasd/ftp /home/asdasd
bash: pushd: graffitiweb: Permission denied
bash: pushd: inventory: Permission denied
bash: pushd: jobs: Permission denied
/home/asdasd/jpyeron /home/asdasd
/home/asdasd/kingspizza /home/asdasd
/home/asdasd/kingspizza2 /home/asdasd
/home/asdasd/mkruger /home/asdasd
bash: pushd: pdinc: Permission denied
bash: pushd: projrejistor: Permission denied
bash: pushd: rejistor: Permission denied
/home/asdasd/share /home/asdasd
bash: pushd: smime: Permission denied
/home/asdasd/swindellweb /home/asdasd
bash: pushd: upcup: Permission denied
bash: pushd: urbana: Permission denied
bash: pushd: vongartenstadt: Permission denied
bash: pushd: votetech: Permission denied
[jpyeron at mail asdasd]$ id
uid=500(jpyeron) gid=500(jpyeron)
groups=500(jpyeron),48(apache),50(ftp),400(cvs),507(mkruger),531(assistantch
e
f),533(chinalane),537(c600312),539(dadweb),522(kingspizza),544(kingspizza2),
546(swindellweb),558(share),561(aep
i),563(burtshare),568(dante),582(busdev),570(smime),574(urbana),578(ai),592(
inventory),595(upcup),602(projrejis
tor),603(votetech),604(rejistor),609(vongartenstadt),611(graffitiweb),617(pd
inc),56736(jobs)

busdev is the 17th group.

14	aepi
20	ai
2	apache
6	assistantchef
15	burtshare
17	busdev
8	c600312
7	chinalane
4	cvs
9	dadweb
16	dante
3	ftp
27	graffitiweb
21	inventory
29	jobs
1	jpyeron
10	kingspizza
11	kingspizza2
5	mkruger
28	pdinc
23	projrejistor
25	rejistor
13	share
18	smime
12	swindellweb
22	upcup
19	urbana
26	vongartenstadt
24	votetech

But if we try on a non nfs mounted dir like /tmp all is fine either way.

[jpyeron at mail sadfsdaf]$ for i in *; do pushd $i; popd 2> /dev/null >
/dev/null; done
/tmp/sadfsdaf/aepi /tmp/sadfsdaf
/tmp/sadfsdaf/ai /tmp/sadfsdaf
/tmp/sadfsdaf/apache /tmp/sadfsdaf
/tmp/sadfsdaf/assistantchef /tmp/sadfsdaf
/tmp/sadfsdaf/burtshare /tmp/sadfsdaf
/tmp/sadfsdaf/busdev /tmp/sadfsdaf
/tmp/sadfsdaf/c600312 /tmp/sadfsdaf
/tmp/sadfsdaf/chinalane /tmp/sadfsdaf
/tmp/sadfsdaf/cvs /tmp/sadfsdaf
/tmp/sadfsdaf/dadweb /tmp/sadfsdaf
/tmp/sadfsdaf/dante /tmp/sadfsdaf
/tmp/sadfsdaf/ftp /tmp/sadfsdaf
/tmp/sadfsdaf/graffitiweb /tmp/sadfsdaf
/tmp/sadfsdaf/inventory /tmp/sadfsdaf
/tmp/sadfsdaf/jobs /tmp/sadfsdaf
/tmp/sadfsdaf/jpyeron /tmp/sadfsdaf
/tmp/sadfsdaf/kingspizza /tmp/sadfsdaf
/tmp/sadfsdaf/kingspizza2 /tmp/sadfsdaf
/tmp/sadfsdaf/mkruger /tmp/sadfsdaf
/tmp/sadfsdaf/pdinc /tmp/sadfsdaf
/tmp/sadfsdaf/projrejistor /tmp/sadfsdaf
/tmp/sadfsdaf/rejistor /tmp/sadfsdaf
/tmp/sadfsdaf/share /tmp/sadfsdaf
/tmp/sadfsdaf/smime /tmp/sadfsdaf
/tmp/sadfsdaf/swindellweb /tmp/sadfsdaf
/tmp/sadfsdaf/upcup /tmp/sadfsdaf
/tmp/sadfsdaf/urbana /tmp/sadfsdaf
/tmp/sadfsdaf/vongartenstadt /tmp/sadfsdaf
/tmp/sadfsdaf/votetech /tmp/sadfsdaf

> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of Jason Pyeron
> Sent: Sunday, January 06, 2008 16:15
> To: 'CentOS mailing list'
> Subject: [CentOS] I am confused. Chmod / chown issues?
> 
> Where did I go wrong?
> 
> [root at mail busdev]# stat .
>   File: `.'
>   Size: 4096            Blocks: 16         IO Block: 32768  Directory
> Device: ah/10d  Inode: 147591      Links: 5
> Access: (0750/drwxr-x---)  Uid: (56755/  busdev)   Gid: 
> (56755/  busdev)
> Access: 2008-01-06 15:49:53.000000000 -0500
> Modify: 2008-01-06 15:49:15.000000000 -0500
> Change: 2008-01-06 15:59:59.000000000 -0500
> 
> [root at mail busdev]# grep ^jpyeron: /etc/group && grep 
> ^busdev: /etc/group
> jpyeron:x:500:
> busdev:x:56755:jpyeron
> [root at mail busdev]# su jpyeron
> [jpyeron at mail busdev]$ ls -al
> ls: .: Permission denied
> [jpyeron at mail busdev]$ exit
> [root at mail busdev]# uname -r
> 2.4.21-37.EL
> [root at mail busdev]#
> 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Sr. Consultant                    10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 





More information about the CentOS mailing list