Solved

Lost user environment

Posted on 2010-11-15
3
429 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 250 total points
ID: 34139911
May restore /etc/environment and /etc/profile files from the backup.  
0
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 250 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

792 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