The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cat /dev/null freakydancer UNIX for Dummies Questions & Answers 3 03-20-2008 06:17 AM
compare null with non-null nitin Shell Programming and Scripting 8 11-04-2006 03:58 PM
> /dev/null rrs Shell Programming and Scripting 2 06-19-2006 01:29 AM
Q1 :/dev/null Q2 -A big123456 UNIX for Advanced & Expert Users 4 11-09-2005 10:16 PM
>/dev/null piltrafa UNIX for Dummies Questions & Answers 1 10-26-2001 02:46 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2008
Registered User
 

Join Date: May 2005
Posts: 17
What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help

My solaris 8 system has the following

/dev/null , /dev/tty and /dev/console

All permission are lrwxrwxrwx

Can this be change to a non-world write ??

any impact ??
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-03-2008
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 290
Quote:
Originally Posted by civic2005 View Post
My solaris 8 system has the following

/dev/null , /dev/tty and /dev/console
All Unix systems have them.
Quote:
All permission are lrwxrwxrwx
Nope, the initial 'l' tell the remaining permissions are meaningless.
Use "ls -lL" to display the real permissions.
Quote:
Can this be change to a non-world write ??
Yes.
Quote:
any impact ??
I suspect your machine will rapidly crash and probably become unusable unless the O/S fix the broken permission at boot time.
Reply With Quote
  #3 (permalink)  
Old 01-03-2008
Registered User
 

Join Date: May 2005
Posts: 17
Thank , but what should I reply to my auditors , which they
are asking me to tighten the permission of each (/dev/tty , /dev/null and
/dev/console !!!!
Reply With Quote
  #4 (permalink)  
Old 01-03-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,499
Them them that the files are links and changing permissions will have no effect, the permissions set on the file to which the symlink points control the access rights
Reply With Quote
  #5 (permalink)  
Old 01-03-2008
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 290
Quote:
Originally Posted by reborg View Post
Them them that the files are links and changing permissions will have no effect
Actually not. Changing permissions on a symlink affect the target, not the link, so the chmod would have disastrous effects.
Reply With Quote
  #6 (permalink)  
Old 01-03-2008
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 290
Quote:
Originally Posted by civic2005 View Post
but what should I reply to my auditors , which they
are asking me to tighten the permission of each (/dev/tty , /dev/null and
/dev/console !!!!
Tell them that they are mistaken in their audit, and they are mistaken in their understanding of how Unix works. /dev/tty is a different device depending on who the user accessing it is. Read and write permissions to /dev/null pose absolutely no security risk.
/dev/console real permissions are already secure.
Reply With Quote
  #7 (permalink)  
Old 01-03-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,499
Quote:
Originally Posted by jlliagre View Post
Actually not. Changing permissions on a symlink affect the target, not the link, so the chmod would have disastrous effects.
Note, I did not say running chmod on the link, I said chaning the permissions of the link and was speaking hypotetically. Running chmod on the link would as you said change the file, but there would still be no effect on the link itself: it would still be 777. The point being that changing the link is a pointless exercise, the actual target should be modified directly if this is required for some reason, but I cannot see a reason for changing any of the ones suggested.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0