Hello guys !
I write you for a strange question:
It's not clear form me the difference between these two commands:
Permission of /dev/da4 for root and generic_user follow:
I try to formulate the question:
Because dd(1) needs root privileges to run, generic_user is forced to use su(1). But if generic_user became root, the /dev/da4 device is no longer in a security condition. Or is this wrong?
Again: when a generic user runs a program with su(1) privileges (like:
Please, you can tell me where I'm wrong ?
Thanks in advance.
I write you for a strange question:
It's not clear form me the difference between these two commands:
Code:
root@maia:/ # dd /dev/da4 /mnt
generic_user@maia:/ % su dd /dev/da4 /mnt
Code:
root@maia:/ # ls -lag /dev/da4 -> crw-r--r-- 1 root operator 0x9e ...........
generic_user@maia:/ % ls -lag /dev/da4 -> crw-r----- 1 root operator 0xe9 .......
Because dd(1) needs root privileges to run, generic_user is forced to use su(1). But if generic_user became root, the /dev/da4 device is no longer in a security condition. Or is this wrong?
Again: when a generic user runs a program with su(1) privileges (like:
su dd.....
, su mount ....
), the super-user privileges are need only to the program to be running, or maybe all the generic_user's account files go in a writable condition?Please, you can tell me where I'm wrong ?
Thanks in advance.