http://bugzilla.novell.com/show_bug.cgi?id=502393 Summary: Chmod clears sticky bits when using numeric permissions Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i586 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jdbarnhart@yahoo.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FIPID-{7Wc7Li7i3K36{7NjpXcqxAg.o980010986; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 1.0.3705; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Chmod is supposed to only set the top three bits of the permissions when using numeric permissions. It should never clear them when the permissions are numeric. However some versions of coreutils will clear them numerically, including what OpenSuse uses. Read the man page on chmod to confirm this is the expected behavior - e.g. it requires you to do u-s, g-s etc. Reproducible: Always Steps to Reproduce: (as root) 1.cd /tmp 2.echo >tmpfile 3.chmod 7777 tmpfile 4.ls -l tmpfile 5.chmod 555 tmpfile 6.ls -l tmpfile Actual Results: The file mode is 0555. Expected Results: The file mode should be 7555 This bug hasn't blown up anything badly on my systems so I'm setting this as priority normal, but it has the potential to cause major problems. Please evaluate and set the priority appropriately. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.