[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Lost user environment

Posted on 2010-11-15
3
Medium Priority
?
440 Views
Last Modified: 2012-05-10
After a site administrator "modified" the /etc/group file on Solaris 5.8 server, the sybase user and other "special" application users no longer get their application environment.
When attempting to switch user (su -) to these users, the following message is displayed;

Warning: USER environment variable could not be set.
/usr/bin/sh: /etc/TIMEZONE: not found
/usr/bin/whoami: Command not found
Cannot find termcap
Cannot find termcap
groups: No passwd entry

I have asked the site admin to restore the passwd, group and shadow for a previous date.
The error is now as follows:

Warning: USER environment variable could not be set.

This is a production site, and I dont want to rebuild them, but my time is growing short.
The sybase user environment is required in order to run the database engine.
The other background app users are required to do applicatioin based printing and database interface to other server/databses.
0
Comment
Question by:phyer1
3 Comments
 
LVL 5

Assisted Solution

by:balasundaram_s
balasundaram_s earned 750 total points
ID: 34139911
May restore /etc/environment and /etc/profile files from the backup.  
0
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 750 total points
ID: 34154145
How're you going with this? Restoring the various relevant files in /etc seems like your best path here.

It isn't difficult to just create a new sybase user and setup all the user, group, project and profile data, though, so if you're still struggling with the restore it'll be faster just to do that.
0
 

Author Closing Comment

by:phyer1
ID: 35393344
Excellent help
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month17 days, 14 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question