Solved

Lost user environment

Posted on 2010-11-15
3
425 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now