Re: mknod

2008-05-06 Thread Ohad Levy
ns. > > Last, you can give them sudo permissions to create only the specific > device files needed. This is only recommended for the first case, though. > > Sample session with fakeroot-ng: > > [EMAIL PROTECTED]:~$ mkdir /tmp/dir > [EMAIL PROTECTED]:~$ cd /tmp/dir > [EMAIL PROT

Re: mknod

2008-05-05 Thread Matan Ziv-Av
On Mon, 5 May 2008, Ohad Levy wrote: for embedded platform development, its required to create devices which are hardware specific (i.e. our own modules). any way to reduce the risk? The easiest way is to write a small script that mknods only specific devices, and let the user sudo that scri

Re: mknod

2008-05-05 Thread Omer Zak
way to reduce the risk? > > Thanks > > > On Mon, May 5, 2008 at 10:32 PM, Shachar Shemesh <[EMAIL PROTECTED]> > wrote: > > Ohad Levy wrote: > Hello All, > > Is there any risk to give a user sudo r

Re: mknod

2008-05-05 Thread Shachar Shemesh
dir [EMAIL PROTECTED]:~$ cd /tmp/dir [EMAIL PROTECTED]:/tmp/dir$ fakeroot-ng -pstate mkdir dev [EMAIL PROTECTED]:/tmp/dir$ fakeroot-ng -pstate mknod dev/sda b 8 0 Notice how the "mknod" call succeeded. Did it create a block device? [EMAIL PROTECTED]:/tmp/dir$ ls -la dev total 8 drwxr-xr-

Re: mknod

2008-05-05 Thread Muli Ben-Yehuda
On Mon, May 05, 2008 at 09:59:22PM +0800, Ohad Levy wrote: > Hello All, > > Is there any risk to give a user sudo rights of mknod? > > as far as I understand it now, it can only create new devices, > therefor the risk for a running system is minimal. Not sure what you mean by

Re: mknod

2008-05-05 Thread Ohad Levy
> > Is there any risk to give a user sudo rights of mknod? > > as far as I understand it now, it can only create new devices, therefor > > the risk for a running system is minimal. > > > > Thanks, > > Ohad > > > As others mentioned, giving someone the ri

Re: mknod

2008-05-05 Thread Shachar Shemesh
Ohad Levy wrote: Hello All, Is there any risk to give a user sudo rights of mknod? as far as I understand it now, it can only create new devices, therefor the risk for a running system is minimal. Thanks, Ohad As others mentioned, giving someone the right to mknod is equivalent to giving

Re: mknod

2008-05-05 Thread Hetz Ben Hamo
What about udev? On Mon, May 5, 2008 at 4:59 PM, Ohad Levy <[EMAIL PROTECTED]> wrote: > Hello All, > > Is there any risk to give a user sudo rights of mknod? > as far as I understand it now, it can only create new devices, therefor the > risk for a running system is minima

Re: mknod

2008-05-05 Thread Valery Reznic
--- On Mon, 5/5/08, Ohad Levy <[EMAIL PROTECTED]> wrote: > From: Ohad Levy <[EMAIL PROTECTED]> > Subject: mknod > To: "linux-il" > Date: Monday, May 5, 2008, 4:59 PM > Hello All, > > Is there any risk to give a user sudo rights of mknod? > as

mknod

2008-05-05 Thread Ohad Levy
Hello All, Is there any risk to give a user sudo rights of mknod? as far as I understand it now, it can only create new devices, therefor the risk for a running system is minimal. Thanks, Ohad