Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non-root users cannot log in

Status
Not open for further replies.

wfooshee

Vendor
Jan 28, 2003
48
US
System is SCO UNIX 6.0.

I have had something seriously fubar'd with a bad script. User was writing a script to fix permissions in an application folder under /usr (to make it and its files visible to Windows users through SAMBA,) and the script got up a level higher than intended and set permissions in the /usr folder itself. Now any non-root user trying to log in gets a "no shell" message after entering the password, and the connection closes.

Looking at the script I see a lot of "cd .." and "cd ../.." lines, so obviously he counted levels wrong. Corrected the script to use absolute pathnames, but now we have a permissions issue on the UNIX filesystem, and I have no clue how to fix it.

root logs in OK, everyone else gets "no shell." Can I fix it, or am I looking at a backup/reinstall? (Please, no!!!!)

 
man fixmog

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
running fixmog returns:

dynamic linker: dlvr_audit: cannot open /osr5/usr/lib/libc.so.1

That file exists, has 555 permission, its parent folder has 755 permission.
 
Bought an SCO ticket, tech compared system to running system, found problems in root directory as well. At some point in fixing permissions the fixmog worked, so that's how it finished.

Do NOT EVER (never ever ever) use relative pathnames in a script!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top