how to remove the stickybit in parent directory and subdirectory.many subdirectorys (recuresive)is their.
To remove stickybit single directory recuresive command is
chmod -tR *
but i need for all sub directory also.
I tried to rerun the command you specified above on one of our systems but there seems to be something wrong with the syntax and I myself have never used the -tR option when running chmod ...
However if you'd like to change only directories and subdirectories you might use a little script like e.g.:
---------------------------------
#!/usr/bin/ksh
find ./ -type d > /tmp/dir.out
for items in `cat /tmp/dir.out`
do
chmod -tR $items
done
---------------------------------
But you'll have to be in the directory that subdirecories you want to change when you run this script because of the " find ./ ".
I think chmod is seeing your R as an invalid permission flag and ignoring it. Per the command's syntax spec, the -R for recursive needs to come before any permissions flags, like so:
chmod -R -t .
HTH,
Rod
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.