checking for unauthorized devices

checking for unauthorized devices

Post by Pat Traino » Mon, 17 Feb 1997 04:00:00



After issuing the command:

find / \( -type c -o -type b \) -exec ls -l {} \;

to locate unauthorized device filenames, how can I then decide which to
change and/or elliminate?

        Does anyone have the straight poop on what file permissions and
ownerships should be for /dev and /proc ?

        Ideally I'd like to delete all unused devices, just to make it
easier to keep track of.. Any ideas?

pat    
:)      


        * WARNING: THE OPINIONS I EXPRESS MAY NOT BE MY OWN *
    "So other than that, Mrs. Lincoln, how did you enjoy the play?"
      www.ntsa.org -+- National Tuberous Sclerosis Association

 
 
 

1. Permission check for devices on NFS fs broken (Solaris 2.2)?

Solaris 2.2, patch 100999-17 installed: I get a "Not owner" error when
e.g. trying to open a null device for writing if the device is on an NFS
filesystem:

# mount
/ on /dev/dsk/c0t3d0s0 read/write/setuid on Fri Aug 13 14:38:10 1993
...
/usr/local/scratch on super:/usr/local/scratch read/write/setuid/remote on Wed Aug 18 13:44:12 1993
# mknod /null c 13 2
# mknod /usr/local/scratch/null c 13 2
# chmod 666 /null /usr/local/scratch/null
# chown per /null /usr/local/scratch/null
# suspend

Stopped (signal)
% ls -l /devices/pseudo/mm:null  /null /usr/local/scratch/null
crw-rw-rw-   1 root     sys       13,  2 Aug 18 12:48 /devices/pseudo/mm:null
crw-rw-rw-   1 per      other     13,  2 Aug 18 13:44 /null
crw-rw-rw-   1 per      other     13,  2 Aug 18  1993 /usr/local/scratch/null
% echo xxx >/null
% echo xxx >/usr/local/scratch/null
/usr/local/scratch/null: Not owner
% whoami
per
%

Same thing appears to happen for all devices, pseudo or not. It works
fine for root. This would seem to be a problem for diskless clients...?
Patches, comments, explanations welcome!

--Per Hedeland


...uunet!erix.ericsson.se!per

2. [Fwd: LINUX vs. External Ditto Drive]

3. please check the my device driver code out..

4. sendmail.cf question

5. How to check if a device is in use

6. UDMA 66 - cmd 648

7. SCSI cmd to check if a device is up

8. HELP: can't print to the vax printers

9. Q: How to check stream device in SUNOS ?

10. Installation freeze at pnp device check

11. error msg: DANGER: Filesystem being checked is larger than the device in which it is stored

12. Adaptex 1540 checking for devices

13. How to write aix shell-script to check tape device