* Why doesn't DFS support SETUID files?
@ 1996-11-26 5:00 Thomas R. Stevenson
1996-11-27 5:00 ` Thomas R. Stevenson
1996-11-27 5:00 ` Bob Oesterlin
0 siblings, 2 replies; 8+ messages in thread
From: Thomas R. Stevenson @ 1996-11-26 5:00 UTC (permalink / raw)
Although there are many reasons to go with a DCE environment, our main
reason was the distribution of files using DFS. For the most part,
this is working very well, with one exception, SETUID files.
We have many commercial and public domain programs that we would like
to be able to distribute via DFS that require the Unix SETUID bit to
be on in order for the program to work. With the extended file access
that DFS gives us, it seems a natural location to store these
privileged programs, except that DFS doesn't support the SETUID bit on
files! This forces us to store these very privileged programs in a
less secure Unix file system. Because we can't use DFS to distribute
these files, we also have the extra head ache of keeping these files
in sync on different machines (which is something we wouldn't have to
worry about if they were stored in DFS).
I understand the necessity to make DFS very secure, but it's also
important to know that when vendors create artificial road blocks like
this, all it does it force their customers to use far less secure
means to achieve their goals. This restriction doesn't prevent
customers from creating SETUID programs. All it does is prevent
customers from storing these programs in a safe AND distribute
location in DFS!
While I'm dreaming about this, it would be nice if there were two
(independent) SETUID flags for DFS files. The first SETUID flag would
set a normal Unix SETUID flag (would give the program normal Unix
privileges, but no DCE/DFS privileges). This would fix 99% of all the
problems we are having with the commercial and public domain programs
we are running. I could also see a second (independent) SETUID flag
that would set a DCE UID flag (would give the program DCE/DFS
privileges, but no Unix privileges). If the customer wanted both
types, they would just turn on both flags for a given file. This
second flag would be going beyond the normal Unix privileges that the
SETUID flag now gives users, so I might be able to see the case for
not allowing it, but I see no reason at all for not allowing the
normal Unix SETUID flag from being part of a DFS file.
--
____ __ __ 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."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Why doesn't DFS support SETUID files?
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 ` Jim Rowan
` (4 more replies)
1996-11-27 5:00 ` Bob Oesterlin
1 sibling, 5 replies; 8+ messages in thread
From: Thomas R. Stevenson @ 1996-11-27 5:00 UTC (permalink / raw)
aa0026@dce-1.wayne.edu (Thomas R. Stevenson) writes:
>
>
> Although there are many reasons to go with a DCE environment, our main
> reason was the distribution of files using DFS. For the most part,
> this is working very well, with one exception, SETUID files.
>
Thanks to Bruce Foster for pointing out the `cm setsetuid` and `cm
getsetuid` DCE commands to me. I haven't had a chance to try them yet,
but they seem to do what I was hoping I could do with setuid files.
--
____ __ __ 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."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Why doesn't DFS support SETUID files?
1996-11-27 5:00 ` Thomas R. Stevenson
@ 1996-11-27 5:00 ` Jim Rowan
1996-11-27 5:00 ` Thomas R. Stevenson
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Jim Rowan @ 1996-11-27 5:00 UTC (permalink / raw)
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.)
--
Jim Rowan Distributed Computing Specialists DCE/DFS Consulting
jmr@computing.com (512) 452-7403
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Why doesn't DFS support SETUID files?
1996-11-27 5:00 ` Thomas R. Stevenson
1996-11-27 5:00 ` Jim Rowan
@ 1996-11-27 5:00 ` Thomas R. Stevenson
1996-12-03 5:00 ` Thomas R. Stevenson
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Thomas R. Stevenson @ 1996-11-27 5:00 UTC (permalink / raw)
aa0026@dce-1.wayne.edu (Thomas R. Stevenson) writes:
>
> aa0026@dce-1.wayne.edu (Thomas R. Stevenson) writes:
>
> >
> >
> > Although there are many reasons to go with a DCE environment, our main
> > reason was the distribution of files using DFS. For the most part,
> > this is working very well, with one exception, SETUID files.
> >
>
> Thanks to Bruce Foster for pointing out the `cm setsetuid` and `cm
> getsetuid` DCE commands to me. I haven't had a chance to try them yet,
> but they seem to do what I was hoping I could do with setuid files.
Some more information on the `cm setsetuid` DCE command. The `cm
setsetuid` DCE command must be executed by the Unix root user on each
client machine that wants to allow SETUID files in DFS for that client
machine. Because it makes changes to the cache manager data, and not
the real DFS files, it must be executed after each reload of the
client machine. The `cm setsetuid` DCE command does not change the
settings of the SETUID flag for a given file, it only allows the
`chmod` command the permission to set thus flag within the cache
manager data for the given file. Thus, after executing the `cm
setsetuid` DCE command for a given file, the root user must still
execute a `chmod u+s` command to turn on the SETUID flag for a given
file. Because this has to be done after each reboot of each client
machine, it can be placed in the machine startup script.
--
____ __ __ 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."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Why doesn't DFS support SETUID files?
1996-11-27 5:00 ` Thomas R. Stevenson
1996-11-27 5:00 ` Jim Rowan
1996-11-27 5:00 ` Thomas R. Stevenson
@ 1996-12-03 5:00 ` Thomas R. Stevenson
1996-12-09 5:00 ` lbro@dscc.dk (Lars Bro)
1996-12-09 5:00 ` Jim Rowan
4 siblings, 0 replies; 8+ messages in thread
From: Thomas R. Stevenson @ 1996-12-03 5:00 UTC (permalink / raw)
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."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Why doesn't DFS support SETUID files?
1996-11-27 5:00 ` Thomas R. Stevenson
` (2 preceding siblings ...)
1996-12-03 5:00 ` Thomas R. Stevenson
@ 1996-12-09 5:00 ` lbro@dscc.dk (Lars Bro)
1996-12-09 5:00 ` Jim Rowan
4 siblings, 0 replies; 8+ messages in thread
From: lbro@dscc.dk (Lars Bro) @ 1996-12-09 5:00 UTC (permalink / raw)
Thomas R. Stevenson wrote:
>
> aa0026@dce-1.wayne.edu (Thomas R. Stevenson) writes:
>
> >
> >
> > Although there are many reasons to go with a DCE environment, our main
> > reason was the distribution of files using DFS. For the most part,
> > this is working very well, with one exception, SETUID files.
> >
>
> Thanks to Bruce Foster for pointing out the `cm setsetuid` and `cm
> getsetuid` DCE commands to me. I haven't had a chance to try them yet,
> but they seem to do what I was hoping I could do with setuid files.
>
Just wonder... On a SunOS I can make setuid shell scripts, what
should I do on DU 3.2 and later
> --
>
> ____ __ __ 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."
--
Lars Bro, DSC Communications a/s Denmark
e-mail: lab@dscc.dk tel: +45 44 77 29 67
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Why doesn't DFS support SETUID files?
1996-11-27 5:00 ` Thomas R. Stevenson
` (3 preceding siblings ...)
1996-12-09 5:00 ` lbro@dscc.dk (Lars Bro)
@ 1996-12-09 5:00 ` Jim Rowan
4 siblings, 0 replies; 8+ messages in thread
From: Jim Rowan @ 1996-12-09 5:00 UTC (permalink / raw)
lbro> Just wonder... On a SunOS I can make setuid shell scripts, what should
lbro> I do on DU 3.2 and later
I don't understand the question...
--
Jim Rowan Distributed Computing Specialists DCE/DFS Consulting
jmr@computing.com (512) 452-7403
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why doesn't DFS support SETUID files?
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 ` Bob Oesterlin
1 sibling, 0 replies; 8+ messages in thread
From: Bob Oesterlin @ 1996-11-27 5:00 UTC (permalink / raw)
On 26 Nov 1996 17:50:43 -0500, aa0026@dce-1.wayne.edu (Thomas R.
Stevenson) wrote:
>
>Although there are many reasons to go with a DCE environment, our main
>reason was the distribution of files using DFS. For the most part,
>this is working very well, with one exception, SETUID files.
Sure it does - you need to "enable" it on a per-system basis using the
"cm" command. It's a function of the DFS cache manager - to tell the
system which SETUID files you "trust".
Bob
--
Bob Oesterlin, Distributed Computing Administration
IBM AS/400 Division - Rochester, MN 55901
oester@vnet.ibm.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1996-12-09 5:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` Jim Rowan
1996-11-27 5:00 ` Thomas R. Stevenson
1996-12-03 5:00 ` Thomas R. Stevenson
1996-12-09 5:00 ` lbro@dscc.dk (Lars Bro)
1996-12-09 5:00 ` Jim Rowan
1996-11-27 5:00 ` Bob Oesterlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox