- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File Permissions on /dev
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 10:34 AM
07-26-2002 10:34 AM
File Permissions on /dev
The following files' permission are shown vulnerable by the security audit software as it says the following world writable file/directory referenced in startup script.
startup script. file
/sbin/init.d/hpbase100 /dev/ether0
/sbin/init.d/net.init /dev/ip
/sbin/init.d/net.init /dev/tcp
/sbin/init.d/nfs.core /dev/tlclts
/sbin/init.d/nfs.core /dev/tlcotsod
/sbin/init.d/nfs.core /dev/tlcots
To get past this i think we need to change the permissions to 644. But i am not too sure what these files are for and what would be the impact of making them 644. Can someone help here?
Thanks in advance,
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 11:19 AM
07-26-2002 11:19 AM
Re: File Permissions on /dev
Remember that /dev contains device files. Changing permissions here will affect users attempting you use a device.
HTH
Marthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 11:23 AM
07-26-2002 11:23 AM
Re: File Permissions on /dev
These should all be device I/O files.
Verify with "ll -d /dev/*".
The first character should be "c".
If these are regular files and not device files, then you need to create new ones with "mknod" command.
Device files need to be world writable for I/O to work.
Be sure that /dev has dr-xr-xr-x permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 11:32 AM
07-26-2002 11:32 AM
Re: File Permissions on /dev
I am not sure of the nature of your security software, but we undergo the sam type of thing.
for your /sbin/init.d files, I would change them to 755, 555, or 550. I mean, they are scripts, afterall and wouldn't/shouldn't be edited by anyone but root anyway and this will get rid of your "world writeable" problem. As for your /dev files, I looked at mine and they are all 777 for those particular ones and our software didn't complain. I would test this out on another test system to see what impact, if any, there is. Or your other option is to stand your ground because those are important device files for your networking protocols and could hose things up, just as Martin suggested.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 11:35 AM
07-26-2002 11:35 AM
Re: File Permissions on /dev
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 11:48 AM
07-26-2002 11:48 AM
Re: File Permissions on /dev
May be we could try 550 on the /sbin/init.d files as they are already having a permission of 555. But i am not sure of the impact on the 1000 odd users.
Thanks
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 12:27 PM
07-26-2002 12:27 PM
Re: File Permissions on /dev
Removing world access to /sbin/init.d scripts should satisfy your auditing requirements. If they insist on doing /dev tell them that removing world access will make the system unuseable for the users, which is true.
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2002 04:19 PM
07-26-2002 04:19 PM
Re: File Permissions on /dev
As far as the device files, these must all be 666. Change these permissions and your networking will break. Possibly, your security scanner is not designed specifically for HP-UX and is reporting these permissions as incorrect.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2002 07:20 AM
07-27-2002 07:20 AM
Re: File Permissions on /dev
The following files have 555 permission
/sbin/init.d/hpbase100
/sbin/init.d/net.init
/sbin/init.d/nfs.core
that is not a issue. but the issue is the following files in /dev
/dev/ether0,/dev/ip,/dev/tcp/dev/tlclts,/dev/tlcotsod,/dev/tlcots are world writable and they are being referenced in the /sbin/init.d files(mentioned above). The security scanner somehow does not like that.
Thanks
joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2002 07:57 AM
07-27-2002 07:57 AM