I noticed something weird, I've installed and reinstalled a few times now (from scratch) and I noticed that alot of the objects in the /dev directory have me as the owner when I always thought they should be owned by root. Am I forgetting something? I know I didn't go in there and change anything, I've still been customizing and installing things, so I havn't had a chance to do anything in there. Here's an example of the drives (removable). skull@daydream:~ > l /dev/hdd /dev/hdc /dev/fd0 brw------- 1 skull users 22, 64 May 21 05:21 /dev/hdd brw------- 1 skull users 22, 0 May 21 05:21 /dev/hdc brw------- 1 skull users 2, 0 May 21 05:21 /dev/fd0 skull@daydream:~ > ssh -l nitz daydream nitz@daydream's password: Have a lot of fun... nitz@daydream:~ > l /dev/hdd /dev/hdc /dev/fd0 brw------- 1 skull users 22, 64 May 21 05:21 /dev/hdd brw------- 1 skull users 22, 0 May 21 05:21 /dev/hdc brw------- 1 skull users 2, 0 May 21 05:21 /dev/fd0 nitz@daydream:~ > I tried with a second user thinking maybe it changed per user but obviously that wasn't the case. -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.2+ - Kernel 2.4.4 I brake for chezlogs!
On Tue, 2 Oct 2001, S.Toms wrote: st> I noticed something weird, I've installed and reinstalled a few times st> now (from scratch) and I noticed that alot of the objects in the /dev st> directory have me as the owner when I always thought they should be owned st> by root. st> Am I forgetting something? I know I didn't go in there and change st> anything, I've still been customizing and installing things, so I havn't st> had a chance to do anything in there. Here's an example of the drives st> (removable). st> st> skull@daydream:~ > l /dev/hdd /dev/hdc /dev/fd0 st> brw------- 1 skull users 22, 64 May 21 05:21 /dev/hdd st> brw------- 1 skull users 22, 0 May 21 05:21 /dev/hdc st> brw------- 1 skull users 2, 0 May 21 05:21 /dev/fd0 st> skull@daydream:~ > ssh -l nitz daydream st> nitz@daydream's password: st> Have a lot of fun... st> nitz@daydream:~ > l /dev/hdd /dev/hdc /dev/fd0 st> brw------- 1 skull users 22, 64 May 21 05:21 /dev/hdd st> brw------- 1 skull users 22, 0 May 21 05:21 /dev/hdc st> brw------- 1 skull users 2, 0 May 21 05:21 /dev/fd0 st> nitz@daydream:~ > st> st> I tried with a second user thinking maybe it changed per user but st> obviously that wasn't the case. st> Ok, after looging onto KDE (or maybe just X) with a different user all together, I notcied that they take the ownership of the current user to some extent. I say to some extent because today it shows the following: skull@daydream:~ > l /dev/hdc /dev/hdd /dev/fd0 brw------- 1 skull users 2, 0 May 21 05:21 /dev/fd0 brw------- 1 skull users 22, 0 May 21 05:21 /dev/hdc brw-rw---- 1 root disk 22, 64 May 21 05:21 /dev/hdd where drive hdd (my dvd drive) is now staying as root only. What file makes this change, maybe I need to tell it that hdd is an actual drive since yast only seems to want to take one drive under the add additional hardware section. st> -- S.Toms - smotrs@mindspring.com - www.mindspring.com/~smotrs SuSE Linux v7.2+ - Kernel 2.4.4 Bugs, pl. n.: Small living things that small living boys throw on small living girls.
* S.Toms [Thu, 4 Oct 2001 19:20:01 -0700 (PDT)]:
where drive hdd (my dvd drive) is now staying as root only. What file makes this change, maybe I need to tell it that hdd is an actual drive since yast only seems to want to take one drive under the add additional hardware section.
This all is done by the pam_devperm module. If you log in via a display manager (kdm, xdm etc.), i.e. the graphical login, it changes the devices named in /etc/logindevperms to the user and group of the person logging in. Just add your dvd drive to that file and all should be well. Philipp -- Penguins to save the dinosaurs -- Handelsblatt on Linux for S/390
participants (2)
-
philippt@t-online.de
-
S.Toms