From: aa0026@dce-1.wayne.edu (Thomas R. Stevenson)
Subject: Re: Why doesn't DFS support SETUID files?
Date: 1996/12/03 [thread overview]
Message-ID: <vdk9qzmc6c.fsf@dce-1.wayne.edu> (raw)
In-Reply-To: vd20df8pg0.fsf@dce-1.wayne.edu
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 {<filename> | <directory_name>}...] [-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."
next prev parent reply other threads:[~1996-12-03 5:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-26 5:00 Why doesn't DFS support SETUID files? Thomas R. Stevenson
1996-11-27 5:00 ` Thomas R. Stevenson
1996-11-27 5:00 ` Thomas R. Stevenson
1996-11-27 5:00 ` Jim Rowan
1996-12-03 5:00 ` Thomas R. Stevenson [this message]
1996-12-09 5:00 ` Jim Rowan
1996-12-09 5:00 ` lbro@dscc.dk (Lars Bro)
1996-11-27 5:00 ` Bob Oesterlin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox