SUMMARY: chown

From: Nick Pettefar <Nick_at_Pettefar.com>
Date: Thu Nov 25 2004 - 19:47:03 EST
Thanks to Russell Page for a quick response and a detailed and accurate answer
to my first question, which did the job perfectly!

No one answered my second question about the security implications of modifying
chown to allow users to give away ownership of their files.

Regards,

Nick@Pettefar.com  DoD 1069  MAG 73516  Bros 650  ZZR1100D  R90s  Z88s

> Two questions about chown, if you have the time...
>
> 1) Is it possible to change the variable rstchown to 0 without rebooting?
>    Everything I can find tells me to put it in /etc/system and reboot, but
>    I don't want to reboot our webserver (uptime 1 year!) for only this change.

You can change many kernel variables on the fly with adb(1):

$ su
Password:
# adb -w -k /dev/ksyms /dev/mem
physmem 79a4
rstchown/D
rstchown:
rstchown:       1
rstchown/W 0
rstchown:       0x1             =       0x0
rstchown/D
rstchown:
rstchown:       0
^D
# exit
$ ls -l foo
-rw-r--r--   1 russell  staff          0 Nov 26 09:31 foo
$ chown root foo
$ ls -l foo
-rw-r--r--   1 root     staff          0 Nov 26 09:31 foo
$
"rstchown/D" prints the current value as a decimal number.
"rstchown/W 0" sets the value to zero. You can only change values if you
start adb with the -w option.

You should change /etc/system anyway, so that the variable is set after your
next reboot.

A useful reference is the "Solaris Tuneable Parameters Reference Manual".

http://docs.sun.com/app/docs/doc/806-4015

-- Russell Page.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Nov 25 19:47:31 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:40 EST