From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9ba4,31029814498c8f19 X-Google-Attributes: gidf9ba4,public X-Google-Thread: f678f,31029814498c8f19 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,31029814498c8f19 X-Google-Attributes: gidfee84,public From: aa0026@dce-1.wayne.edu (Thomas R. Stevenson) Subject: Re: Why doesn't DFS support SETUID files? Date: 1996/12/03 Message-ID: #1/1 X-Deja-AN: 202182232 references: organization: Wayne State University newsgroups: comp.soft-sys.dce,comp.unix.osf.misc,comp.unix.osf.osf1 jmr@risc.sps.mot.com (Jim Rowan) writes: > > > Let me correct you a bit: > > Thomas> Some more information on the `cm setsetuid` DCE command. > [...] > Thomas> the client machine. The `cm setsetuid` DCE command does not change > Thomas> the settings of the SETUID flag for a given file, it only allows the > Thomas> `chmod` command the permission to set thus flag within the cache > Thomas> manager data for the given file. > > Umm, this isn't quite correct. What it does is to control whether the setuid > bit is honored for files (in this particular fileset). It doesn't control > whether chmod +s can be done. > > Further -- the path given as an argument to cm setsetuid only serves to > identify a fileset; the flag applies to a whole fileset, not a file. > > [...] > Thomas> Thus, after executing the `cm setsetuid` DCE command for a given > Thomas> file, the root user must still execute a `chmod u+s` command to turn > Thomas> on the SETUID flag for a given file. > > It doesn't have to be root, any user could do this. (Only root can do it to > other people's files...). (Also, it can happen before or after the cache > manager is told to honor setuid in that fileset.) Thanks for the correction. I was getting confused by some of the warning messages I was seeing. When I did the `chmod u+s` command to the dfs files dsmapitca and dsmtca (before executing the `cm setsetuid` command), I was getting the error message: # chmod u+s dsmapitca dsmtca 0481-014 chmod: not all requested changes were made to dsmapitca 0481-014 chmod: not all requested changes were made to dsmtca An `ls -al dsmapitca dsmtca` showed that the files still weren't SETUID files: # ls -al dsmapitca dsmtca -rwxr-xr-x 1 root system 276108 Sep 4 22:33 dsmapitca -rwxr-xr-x 1 root system 274124 Sep 4 22:33 dsmtca This made me think I had to do the `cm setsetuid` command first before executing the `chmod` command. Also the `cm help setsetuid` command says: # cm help setsetuid cm setsetuid: set cell setuid status Usage: cm setsetuid [-path { | }...] [-state {on | off}] [-help] The "-path" option says filename or directory, even though it sets everything for the entire fileset. This was also confusing to me. > > -- > Jim Rowan Distributed Computing Specialists DCE/DFS Consulting > jmr@computing.com (512) 452-7403 -- ____ __ __ EMail: mailto:aa0026@dce-1.wayne.edu / /_/ /_ VMail: (313) 577-4742 /. /\. __/. Fax: (313) 577-5626 Home Page: http://tom.cc.wayne.edu Anon FTP: ftp://tom.cc.wayne.edu For my PGP PUBLIC KEY BLOCK, finger aa0026@dce-1.wayne.edu "A common mistake that people make when trying to design something completely foolproof was Douglas Adams to underestimate the ingenuity of complete Mostly Harmless fools."