1847086 Members
5158 Online
110262 Solutions
New Discussion

Re: Question on /dev

 
joe_91
Super Advisor

Question on /dev

Hi There:

I am watching on my production box the permissions of certain character specific files as world writable. I am attaching the output of ll /dev. Can the gurus help here. Is there something wrong with these permissions. Also /dev/null ..it should be world writable right?? Please ignore the permission on the vg's.

Thanks in advance,
Joe.
5 REPLIES 5
Hai Nguyen_1
Honored Contributor

Re: Question on /dev

Your dev files' permissions look good to me. The /dev/null file's modebit is also correct.

Hai
Joseph C. Denman
Honored Contributor

Re: Question on /dev

Hi Joe,

I compared your listing to a listing of a couple of my servers.

Looks good to me.

Hope this helps.

Joe....
If I had only read the instructions first??
Martin Johnson
Honored Contributor

Re: Question on /dev

/dev/null, better known as the bit bucket, is used when you want to suppress/ignore output.

HTH
Marty
Bill Hassell
Honored Contributor

Re: Question on /dev

Normally, 666 or 777 files or directories are a possible problem. For all of the device files listed, they are fine. The tty device files must start as 666 since they can be used by anybody. Ownership will change dynamically due to the way daemons handle them.

There is one bad permission: vg04

It looks like it may have been created when umask was set to 000...not good. Make sure that umask 077 or at least umask 022 is in /etc/profile and /etc/csh.login. The correct permission foe vg04 is 700 or perhaps 755. ALL device files inside /dev/vg* should be 640. You don't want anyone to read the logical volumes directly. Same with /dev/dsk and /dev/rdsk...no world readable (and certainly no world writable) disk device files.


Bill Hassell, sysadmin
Fragon
Trusted Contributor

Re: Question on /dev

I have examined mine, nothing abnormal!

ux