[newbie] The effect of 'chgrp' is not pemanent?
Hi. I've noticed that, strangely, the effect of the command 'chgrp' is not permanent: I did # chgrp rodolfo /* and then # ls -l / and got the following output: [EMAIL PROTECTED] rodolfo]# ls -l / total 52 drwxr-x--x 2 root rodolfo 4096 Dec 17 16:05 bin/ drwxr-x--x 3 root rodolfo 4096 Dec 19 15:19 boot/ drwxr-xr-x 17 root rodolfo 3800 Dec 19 15:19 dev/ drwxr-x--x 71 root rodolfo 4096 Dec 19 15:19 etc/ drwxr-x--x 4 root rodolfo 4096 Dec 18 18:53 home/ drwxr-x--x 2 root rodolfo 4096 Dec 17 16:31 initrd/ drwxr-x--x 11 root rodolfo 4096 Dec 17 16:13 lib/ drwxr-xr-x 7 root rodolfo 4096 Dec 18 11:48 mnt/ drwxr-x--x 2 root rodolfo 4096 Jan 5 2004 opt/ dr-xr-xr-x 78 root rodolfo0 Dec 19 15:19 proc/ drwx-- 11 root rodolfo 4096 Dec 19 15:08 root/ drwxr-x--x 2 root rodolfo 4096 Dec 17 15:59 sbin/ drwxr-xr-x 9 root rodolfo0 Dec 19 15:19 sys/ drwxrwx-wt 11 root rodolfo 4096 Dec 19 15:20 tmp/ drwxr-x--x 12 root rodolfo 4096 Dec 17 16:07 usr/ drwxr-x--x 17 root rodolfo 4096 Dec 17 15:59 var/ ; then I rebooted the system, did '# ls -l /' again and this time the output was changed: [EMAIL PROTECTED] rodolfo]# ls -l / total 52 drwxr-x--x 2 root rodolfo 4096 Dec 17 16:05 bin/ drwxr-x--x 3 root rodolfo 4096 Dec 19 15:19 boot/ drwxr-xr-x 17 root root3800 Dec 19 15:19 dev/ drwxr-x--x 71 root rodolfo 4096 Dec 19 15:19 etc/ drwxr-x--x 4 root rodolfo 4096 Dec 18 18:53 home/ drwxr-x--x 2 root rodolfo 4096 Dec 17 16:31 initrd/ drwxr-x--x 11 root rodolfo 4096 Dec 17 16:13 lib/ drwxr-xr-x 7 root rodolfo 4096 Dec 18 11:48 mnt/ drwxr-x--x 2 root rodolfo 4096 Jan 5 2004 opt/ dr-xr-xr-x 79 root root 0 Dec 19 15:19 proc/ drwx-- 11 root rodolfo 4096 Dec 19 15:08 root/ drwxr-x--x 2 root rodolfo 4096 Dec 17 15:59 sbin/ drwxr-xr-x 9 root root 0 Dec 19 15:19 sys/ drwxrwx-wt 11 root rodolfo 4096 Dec 19 15:20 tmp/ drwxr-x--x 12 root rodolfo 4096 Dec 17 16:07 usr/ drwxr-x--x 17 root rodolfo 4096 Dec 17 15:59 var/ , and even other changes occured later. How come? And how to make chgrp's effect not change until I want to? Thanks, Rodolfo Regala e regalati Libero ADSL: 3 mesi gratis, navighi veloce e scarichi a 1.2 Mega. Abbonati subito senza costi di attivazione su http://www.libero.it Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] The effect of 'chgrp' is not pemanent?
On Sun, Dec 19, 2004 at 03:39:15PM +0100, [EMAIL PROTECTED] wrote: Hi. I've noticed that, strangely, the effect of the command 'chgrp' is not permanent: I did # chgrp rodolfo /* and then # ls -l / and got the following output: [EMAIL PROTECTED] rodolfo]# ls -l / total 52 drwxr-x--x 2 root rodolfo 4096 Dec 17 16:05 bin/ drwxr-x--x 3 root rodolfo 4096 Dec 19 15:19 boot/ drwxr-xr-x 17 root rodolfo 3800 Dec 19 15:19 dev/ drwxr-x--x 71 root rodolfo 4096 Dec 19 15:19 etc/ drwxr-x--x 4 root rodolfo 4096 Dec 18 18:53 home/ drwxr-x--x 2 root rodolfo 4096 Dec 17 16:31 initrd/ drwxr-x--x 11 root rodolfo 4096 Dec 17 16:13 lib/ drwxr-xr-x 7 root rodolfo 4096 Dec 18 11:48 mnt/ drwxr-x--x 2 root rodolfo 4096 Jan 5 2004 opt/ dr-xr-xr-x 78 root rodolfo0 Dec 19 15:19 proc/ drwx-- 11 root rodolfo 4096 Dec 19 15:08 root/ drwxr-x--x 2 root rodolfo 4096 Dec 17 15:59 sbin/ drwxr-xr-x 9 root rodolfo0 Dec 19 15:19 sys/ drwxrwx-wt 11 root rodolfo 4096 Dec 19 15:20 tmp/ drwxr-x--x 12 root rodolfo 4096 Dec 17 16:07 usr/ drwxr-x--x 17 root rodolfo 4096 Dec 17 15:59 var/ ; then I rebooted the system, did '# ls -l /' again and this time the output was changed: [EMAIL PROTECTED] rodolfo]# ls -l / total 52 drwxr-x--x 2 root rodolfo 4096 Dec 17 16:05 bin/ drwxr-x--x 3 root rodolfo 4096 Dec 19 15:19 boot/ drwxr-xr-x 17 root root3800 Dec 19 15:19 dev/ drwxr-x--x 71 root rodolfo 4096 Dec 19 15:19 etc/ drwxr-x--x 4 root rodolfo 4096 Dec 18 18:53 home/ drwxr-x--x 2 root rodolfo 4096 Dec 17 16:31 initrd/ drwxr-x--x 11 root rodolfo 4096 Dec 17 16:13 lib/ drwxr-xr-x 7 root rodolfo 4096 Dec 18 11:48 mnt/ drwxr-x--x 2 root rodolfo 4096 Jan 5 2004 opt/ dr-xr-xr-x 79 root root 0 Dec 19 15:19 proc/ drwx-- 11 root rodolfo 4096 Dec 19 15:08 root/ drwxr-x--x 2 root rodolfo 4096 Dec 17 15:59 sbin/ drwxr-xr-x 9 root root 0 Dec 19 15:19 sys/ drwxrwx-wt 11 root rodolfo 4096 Dec 19 15:20 tmp/ drwxr-x--x 12 root rodolfo 4096 Dec 17 16:07 usr/ drwxr-x--x 17 root rodolfo 4096 Dec 17 15:59 var/ , and even other changes occured later. How come? And how to make chgrp's effect not change until I want to? My guess is msec is changing the permissions back for you. I don't know if /dev, /proc, and /sys need to be group owned by root, but I really question the need to have your entire system group owned by a simple user. Sounds like a recipe for disaster to me. Better to su when you need to, or learn how to set up sudo. Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] The effect of 'chgrp' is not pemanent?
On Sunday 19 Dec 2004 2:39 pm, [EMAIL PROTECTED] wrote: Hi. I've noticed that, strangely, the effect of the command 'chgrp' is not permanent: I did # chgrp rodolfo /* Since this is the newbie list, Do not do this. If it was the expert list I'd say Are you sure you know what you're doing? To me this is highly dangerous from the point of view of system security and stability. and then # ls -l / ; then I rebooted the system, did '# ls -l /' again and this time the output was changed: [EMAIL PROTECTED] rodolfo]# ls -l / total 52 drwxr-x--x 2 root rodolfo 4096 Dec 17 16:05 bin/ drwxr-x--x 3 root rodolfo 4096 Dec 19 15:19 boot/ drwxr-xr-x 17 root root3800 Dec 19 15:19 dev/ drwxr-x--x 71 root rodolfo 4096 Dec 19 15:19 etc/ drwxr-x--x 4 root rodolfo 4096 Dec 18 18:53 home/ drwxr-x--x 2 root rodolfo 4096 Dec 17 16:31 initrd/ drwxr-x--x 11 root rodolfo 4096 Dec 17 16:13 lib/ drwxr-xr-x 7 root rodolfo 4096 Dec 18 11:48 mnt/ drwxr-x--x 2 root rodolfo 4096 Jan 5 2004 opt/ dr-xr-xr-x 79 root root 0 Dec 19 15:19 proc/ drwx-- 11 root rodolfo 4096 Dec 19 15:08 root/ drwxr-x--x 2 root rodolfo 4096 Dec 17 15:59 sbin/ drwxr-xr-x 9 root root 0 Dec 19 15:19 sys/ drwxrwx-wt 11 root rodolfo 4096 Dec 19 15:20 tmp/ drwxr-x--x 12 root rodolfo 4096 Dec 17 16:07 usr/ drwxr-x--x 17 root rodolfo 4096 Dec 17 15:59 var/ /dev and /proc are mounted filesystems, created at boot time. I don't have /sys on my system, but I expect it is also. , and even other changes occured later. How come? That will be msec, trying to keep your system secure. And how to make chgrp's effect not change until I want to? You could disable msec. You could even find how /dev, /proc and /sys are mounted and change that. But please don't. What are you trying to achieve? There has to be a better way. By the looks of the directory permissions you have selected a high security level. Most of mine are drwxr-xr-x. If that's your problem then it would be safer to reduce the security level or just work within it. -- Richard Urwin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com