vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I just noticed this problem on a Solaris 9 system of mine. chmod seems to be working errantly, adding the sticky bit and etc... # ls -l drwxr-xr-x 17 root other 512 Nov 14 07:40 apache2 drwxr-sr-x 3 root root 512 Nov 14 07:40 backups # chmod 0755 backups # ls -l drwxr-xr-x 17 root other 512 Nov 14 07:40 apache2 drwxr-sr-x 3 root root 512 Nov 14 07:40 backups # chmod 700 backups # ls -l drwxr-xr-x 17 root other 512 Nov 14 07:40 apache2 drwx--S--- 3 root root 512 Nov 14 07:40 backups # mkdir backups.save # ls -l drwxr-xr-x 17 root other 512 Nov 14 07:40 apache2 drwx--S--- 3 root root 512 Nov 14 07:40 backups drwxr-sr-x 2 root root 512 Nov 14 07:43 backups.save My umask is 022. I am explicitly calling /usr/bin/chmod and chmod has the following attributes: #ldd /usr/bin/chmod libc.so.1 => /lib/libc.so.1 libdl.so.1 => /lib/libdl.so.1 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 # ls -l /usr/bin/chmod -r-xr-xr-x 1 root bin 18500 Apr 6 2002 /usr/bin/chmod #file chmod chmod: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped Anyone have any ideas what my problem is? Thx, CC |
| ||||
| In article <3fb4f9ad_2@127.0.0.1>, Rhugga <ccarson@echeeba.com> wrote: >I just noticed this problem on a Solaris 9 system of mine. chmod seems to be >working errantly, adding the sticky bit and etc... Not the sticky bit, the set-gid bit. It's not adding it. It was already there, and it didn't remove it. Just like it says in the man page: It may be cleared only by using symbolic mode. So try: chmod g-s backups ># mkdir backups.save ># ls -l >drwxr-xr-x 17 root other 512 Nov 14 07:40 apache2 >drwx--S--- 3 root root 512 Nov 14 07:40 backups >drwxr-sr-x 2 root root 512 Nov 14 07:43 backups.save When you create a new directory, if the parent directory has set-gid set, it's automatically copied to the new directory. -- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group. |