[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto change ownership of device under devfs



On Wed, Feb 20, 2002 at 11:04:44PM -0600, Michael Heldebrant wrote:
> On Wed, 2002-02-20 at 22:14, mdevin wrote:
> > I need to change the ownership of my 2nd serial port for nut to work
> > properly with my ups.  I am using devfs which is enabled at boot.
> > 
> > Also, I would prefer to change the devfs configuration rather than just
> > the devfsd one.  Since I may be able to do without devfsd if I can get
> > everything configured properly.

> devfsd.conf contains these lines:
> # Include the compatibility symlinks
> OPTIONAL_INCLUDE	/etc/devfs/compat_symlinks
> 
> # Include the standard permissions settings for devices
> INCLUDE			/etc/devfs/perms
> 
> # Include package-generated files from /etc/devfs/conf.d
> OPTIONAL_INCLUDE	/etc/devfs/conf.d
> 
> Which should allow you to place your own file in the conf.d directory
> that will be applied after the perms file is parsed.
> 
> I created a file in the conf.d directory for my system that contains the
> following lines:
> 
> REGISTER ^tts/0                 PERMISSIONS root.nut 0660
> REGISTER ^ttyS0                 PERMISSIONS root.nut 0660
>
OK, I will do that for now.  But there must be a way to tell devfs the
ownership directly rather than have devfsd fudge them the way you want
after.  What if you don't run devfsd.  devfs is supposed to work without
devfsd.

Cheers and thanks.

Mark.

Attachment: pgp4gs0Wx6ETD.pgp
Description: PGP signature


Reply to: