How to determine serial port

keith morse kgmorse at mpcu.com
Mon Apr 4 22:35:02 UTC 2005


Jeff Boyce wrote:
> Greetings -
> 
> I am novice linux administrator for a small office file server and am 
> installing software for managing my UPS system.  The instructions state 
> for me to set ownership data and permissions on the serial port that is 
> connected to the UPS hardware.  It uses an example of:
> 
> chmod 0600 /dev/ttyS1
> chown user:group /dev/ttyS1
> 
> but also states that serial ports vary greatly and therefore mine may be 
> called something else.  How do I determine what tty my serial port is?  
> I have a Dell PE 2600 with two serial ports in the back with my UPS 
> plugged into the #1 port.  My OS is RHEL3.  Thanks.
> 

Two things.  Please reference www.tldp.org and the howto's found there as 
there are at least two that talk about serial ports.


Second.  Try " ls -al /dev/ttyS1 " at the command line and you will see the 
permission and ownership of the file.  It would be unlikely that you would 
have to change them.

	com1     aka    /dev/ttyS0
	com2     aka    /dev/ttyS1




More information about the redhat-list mailing list