changing the .profile location


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users changing the .profile location
# 1  
Old 03-19-2010
MySQL changing the .profile location

Hi Experts,

Can any one guide me to change the .profile location;

My case is; I have two .profile in /DATA/home/x/ as well as /home/x/.

While login system default refers to /home/x/ but I need to change this to /DATA/home/x/.

Please advice. It is urgent...
# 2  
Old 03-19-2010
Quote:
Originally Posted by Jerald Nathan
Hi Experts,

Can any one guide me to change the .profile location;

My case is; I have two .profile in /DATA/home/x/ as well as /home/x/.

While login system default refers to /home/x/ but I need to change this to /DATA/home/x/.

Please advice. It is urgent...
I see 2 options:

- Set a different home directory in /etc/passwd
- Create a softlink from /home/x/.profile to /DATA/home/x/.profile
# 3  
Old 03-19-2010
MySQL Clarification

Hi SB008,

Basically,

I need to remove the reference of profile in /DATA/home/.profile and
change the reference of profile to /DATA/home/x/.profile

Thanks in advance.
# 4  
Old 03-26-2010
The .profile file is read from the current directory once the user logs in. The user's initial directory comes from the /etc/passwd file entry for the user as SB008 pointed out. You need to have the .profile file (or symbolic link) in that directory be the .profie you want for the user.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

Hello, I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies

2. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

3. UNIX and Linux Applications

Firefox create new profile in non default location

Could someone please explain how to setup a new firefox profile in non default location from the command line? (2 Replies)
Discussion started by: cokedude
2 Replies

4. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

5. Shell Programming and Scripting

Shell Script for Copy files from one location to another location

Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies

6. Shell Programming and Scripting

Put one string from one location to another location in a file

Hi Everyone, I have 1.txt here a b c' funny"yes"; d e The finally output is: here a b c d e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies

7. AIX

rerun .profile after changing variable

I changed a $variable in my .profile (AIX unix). I know I could exit out and logon onto unix again, but how do I rerun the .profile at the command line? (2 Replies)
Discussion started by: sboxtops
2 Replies

8. AIX

Changing user profile - Newbie question

Hi guys, I am very very new to AIX, (actually today I entered an AIX server for the first time), but I have worked with Solaris a little bit in the past. Today when I entered the system, the first thing I realized is that there was no "/home/" directory created, and instead it took me to a... (1 Reply)
Discussion started by: panchopp
1 Replies

9. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question