sunOS 4.x.x root login


 
Thread Tools Search this Thread
Operating Systems Solaris sunOS 4.x.x root login
# 1  
Old 02-02-2006
sunOS 4.x.x root login

I have an old (I mean "dinosaur old") server that is running SunOS 4.1xxx.

I need to allow root login ONLY on the console. I've looked in /etc/default for the login file for the "console=/dev/console" parameter is, but there's no 'default" dir in /etc.

Can someone help?

Thanks
# 2  
Old 02-03-2006
documentation for 4.1.x is sparse

From fsu.edu:
Quote:
1. login as "root", if allowed in /etc/ttytab (BSD):

#
# @(#)ttytab 1.7 92/06/23 SMI
#
# name getty type status
#
console "/usr/etc/getty cons8" sun on local secure
ttya "/usr/etc/getty std.9600" unknown off local secure
ttyb "/usr/etc/getty std.9600" unknown off local secure
ttyp0 none network off secure
ttyp1 none network off secure

Field 1: "/dev" device name (e.g., "/dev/ttya")
Field 2: program to monitor that line ("getty", "xdm")
Field 3: Type of terminal (in "/etc/termcap")
Field 4 and up: List of attributes for that line

"on" == start up process in field 2
"local" == use local connection line discipline (or lack thereof)
"secure" == "root" allowed to log on
found at fsu.edu - lectures

More info specific to 4.1.3 - hopefully it will work with yours - see Security on SunOS 4.1.3

Last edited by RTM; 02-03-2006 at 12:27 PM..
# 3  
Old 02-03-2006
Thanks that's just what I needed.

I edited (after copying the original file) the ttytab file and deleted the 'secure' flag on all the devices, except for console.

It now blocks remote root logins. *whew!* Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

2. UNIX for Advanced & Expert Users

How do I remove or hide SunOS version/release from remote login prompt?

For any SunOS 5.XX release, it appears prior to the "login:" prompt (as if a "uname" command is run). Would anyone know where that initial display of SunOS release comes from upon a remote login and how I can stop if from displaying? Thank you (4 Replies)
Discussion started by: ssid61
4 Replies

3. Red Hat

Su root or login root

Hi, I find there is some customized linux with application. When I use login account root and type the password. It is not allow to login. But if I login with specified user and password. Then I use command "su - " and type root passwd. It allow you to switch to "root" account . Or if i... (14 Replies)
Discussion started by: chuikingman
14 Replies

4. UNIX for Dummies Questions & Answers

SunOS login

Hello, I have a server with a SunOS, when its boots it shows me the version and then the the screen turns grey, I know with unix server you will promted to login, however in SUNOS this is not the case and there is balck screen.. I know the server is up as i can ping it and SSH-it, however... (0 Replies)
Discussion started by: nexOne
0 Replies

5. Solaris

sshd (openssh) on SunOS without root privileges

Hi, I've just managed to install openssh in my home directory on a server I have access to by using --prefix=$HOME/local after ./configure. Another thing I was having trouble with without root access was privilege separation, so I disabled that in my sshd_config. However, when I run... (10 Replies)
Discussion started by: sayeo
10 Replies

6. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

7. Solaris

root rlogin on sunos 5.9

Hi folks, Lately, i was asked to install some software on a sunos 5.9. The problem is that i cannot setup the r services for the installation to work properly : rlogin/rsh root without password. It keeps on bumping me login incorrect when i try to rlogin/rsh it with root ... I wonder why... (3 Replies)
Discussion started by: andryk
3 Replies

8. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

9. UNIX for Dummies Questions & Answers

SunOS version 5.7 root password recovery?

I just received a Sun microsystem ultra 5 for a auction, it is running sunOS version 5.7, when it boots it asks for user login and password, I dont have either, is there a way to login in as root user with out the password or is there a way to recover the password so I can get in to my system? (1 Reply)
Discussion started by: mscav219
1 Replies

10. UNIX for Dummies Questions & Answers

SunOS - root's .profile

There is no .profile file for the root user. It should reside in "/". Can I just copy a .profile file into "/"? (3 Replies)
Discussion started by: xadamz23
3 Replies
Login or Register to Ask a Question