Thanks Andreas.
Even if I logout and login manytimes, I still cannot access the folder.
However, after I reboot the CentOS5, I can access the folder.
I have to say, this immediately reminds me Windoze, where reboot is a must
for many scenarios.
Is there an explaination why a linux system needs reboot before the group
access right is allowed?
The script I wrote to create a new svn project is in the following. I always
su to root to execute this script since the commands groupadd and usermod
are root commands.
======== scripte createproject.sh ======
#!/bin/sh -v
echo Usage: createproject projectname username1 [username1 username2
username3 username4]
if [ $# -gt 4 ]
then
echo too many parameters
exit 1
fi
if [ $# -lt 2 ]
then
echo too less parameters
exit 1
fi
svnadmin create /home/svn/$1
groupadd $1
usermod -a -G $1 $2
if [ $# -eq 3 ]; then usermod -a -G $1 $3; fi
if [ $# -eq 4 ]; then usermod -a -G $1 $4; fi
chown -Rv $2 /home/svn/$1
chgrp -Rv $1 /home/svn/$1
chmod -Rv g+rws /home/svn/$1
cd /tmp
svn checkout file:///home/svn/$1
cd $1
svn mkdir doc
svn mkdir paper
svn mkdir src_ampl
svn mkdir src_c
svn mkdir src_matlab
svn propset svn:ignore . -R -F ~/ignorelist
svn commit -m "created project"
cd ..
rm -fr $1
======
All the best,
Michael Chen
On Thu, Sep 15, 2011 at 2:53 AM, Andreas Tscharner <
andreas.tscharner_at_metromec.ch> wrote:
> > Subject: cannot access folder though I have right
> >
> > Though I am a member of the group "shortfall", and there are
> > group access rights (rwS) for the folder db/rev/1, I cannot
> > access it. I also have disabled the SELinux totally to
>
> Stupid question: Did you logout and login after you have added yourself to
> the shortfall group?
>
> Best regards / Freundliche Grüsse
> Wenzel Metromec AG
> Andreas Tscharner
> --
> Andreas Tscharner, Development
> Wenzel Metromec AG, Rheinfelsstrasse 1, CH-7007 Chur, Switzerland
> phone: +41 (0)81 257 07 00
> fax: +41 (0)81 257 07 01
> e-mail: mailto:andreas.tscharner_at_metromec.ch
> www: http://www.metromec.ch
>
>
> Open House am 26. und 27.10.11
>
> Am 26. und 27. Oktober 2011 findet das Wenzel Metromec Open House in Chur
> statt.
> Tauchen Sie ein in interessante Fachreferate und Workshops.
> Besichtigen Sie topaktuelle Exponate aus dem Hause WENZEL.
> Erfahren Sie mehr über unsere Produkte und Dienstleistungen.
> Lernen Sie die neuste Version von Metrosoft QUARTIS kennen.
>
> Reservieren Sie sich das Datum.
> Das detailierte Programm folgt in Kürze.
>
>
>
--
All the best,
Michael Chen
Google Voice: (847) 448-0647 (Chicago number)
Received on 2011-09-15 14:24:21 CEST