- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /dev/tty problem with modem connection.
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
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
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-13-2001 01:25 PM
тАО07-13-2001 01:25 PM
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2001 01:36 PM
тАО07-13-2001 01:36 PM
Re: /dev/tty problem with modem connection.
/dev/tty is a pseudo device. All interactive users are automatically connected. You can
echo "This is a test" > /dev/tty from anywhere
and see the output where you are connected.
Go to another terminal and do the same thing and the output goes to that terminal.
You probably need to look at the permissions of the actual modem device and open them up to 666. Normally, the modem devices are owned by uucp, group nuucp.
Hope this helps, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2001 01:43 PM
тАО07-13-2001 01:43 PM
Re: /dev/tty problem with modem connection.
What is the tty port set in for the modem ??
The modem would be hooked to some serial port .
You can find out may be by looking into /etc/uucp/Devices file . Then you can change the permission for that file in /dev/directory . It should be set to rwx for all .
While you telnet you connect throught the network which uses ports and pseudo devices to connect.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2001 01:58 PM
тАО07-13-2001 01:58 PM
Re: /dev/tty problem with modem connection.
I changed the modem permissions to 666 and the group and user, but when I dialed in as the user the owner of the modem changed to the user? I still got the /dev/tty error at login. When I signed off as the user on the modem, the device owner went back to uucp with the group of tty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2001 02:09 PM
тАО07-13-2001 02:09 PM
SolutionIf you are running uugetty, I would try changing to /usr/bin/getty on that port especially if you don't need it to be an outbound port as well).
in /etc/inittab change your entry to something like this:
a1:3:respawn:/usr/bin/getty -h ttyd0p5 19200
You will need to kill the original getty and do an init q. You may need to first set the port to off. Do an init q. Kill uugetty and then make the change to getty and finally do an init q.
The other possible source of your error is some tset/stty/tabs commands in your .profile.
You might comment all that stuff out and see it your logins work.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2001 06:53 AM
тАО07-16-2001 06:53 AM
Re: /dev/tty problem with modem connection.
Thanks for your answer, I'm having trouble restarting the getty. I killed it, then changed the entry like so:
a0:3:respawn:/usr/lbin/uucp/getty -h ttyd2a1 19200
#a0:3:respawn:/usr/lbin/uucp/uugetty -r -t 60 -h ttyd2a1 19200
But now the getty won't restart. I have done multiple init q, but no go. I can't restart the system because a user is on it. I'm checking for the getty to restart with this:
ps -ef | grep "ttyd2a1"
Which found the getty the first time, no problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2001 08:04 AM
тАО07-16-2001 08:04 AM
Re: /dev/tty problem with modem connection.
Okay I got the getty started, I changed the inittab entry to this:
a0:3:respawn:/usr/sbin/getty -h ttyd2a1 19200
And that fixed the problem, I no longer get the /dev/tty error! If you have time, why that worked would be great to know. Thanks, Greta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2001 09:01 AM
тАО07-16-2001 09:01 AM
Re: /dev/tty problem with modem connection.
I'm not sure which question you wanted me to respond to. As to why your /usr/lbin/uucp/getty did not work is simply that the executable is not in that directory but is typically found in /usr/bin or /usr/sbin.
As to why, getty vs. uugetty, it is simply that getty is a much simpler command because it does not have to worry about bidirectional protocols. Whenever, I have connection problems, I always use getty first to make sure cabling and gettydefs are correct before moving on to the more complicated uugetty (and then only if the port is needed for outgoing connectios as well.)
In fact, I typically start with something even simpler, I first connect with kermit which allows me to make sure that I can talk to the modem and issue any needed setup first.
Anyway, I'm glad that you got your modem working.
Regards, Clay