.profile - changes don't affect the login


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers .profile - changes don't affect the login
# 1  
Old 03-09-2008
.profile - changes don't affect the login

I have modified the .profile in my profile and I don't see any effect.
Why the changes don't have effect?
I tried both on the account at a server where I have limited permissions as user and to my local pc (as user).

Is it the .profile overridden by some other file? It looks weird because I think it shouldn't be and it isn't as far as I have read till now.

To be more exact, I log out and I log in after the changes and I see no difference in the login process. On the other hand, the changes in the .bash_logout file affect the logout operation.

Maybe at my local machine the output is not shown when I just open a terminal (I am using Ubuntu) but what about the remote machine? It shouldn't be different when I log in?

Sorry if my question sounds silly. As you can see, I am newbie here.
# 2  
Old 03-09-2008
what are the changes and which shell do you use?
# 3  
Old 03-09-2008
I use bash and I even tried the echo. I didn't see any difference.
I am quoting the first part of the .profile.

Quote:
cat .profile
test -z "$PROFILEREAD" && . /etc/profile
who | wc -l; echo ' users are online'
The first line was already in the .profile
# 4  
Old 03-09-2008
the last line works fine for me... i changed it a little bit to:

echo `who | wc -l` "user(s) are online"

and is bash the shell thats in yout /etc/passwd file for your user (is it the login shell)?
# 5  
Old 03-09-2008
Code:
echo $SHELL
/bin/bash

Code:
cat /etc/passwd | grep bash
root:x:0:0:root:/root:/bin/bash

Do these prove that I run bash?

Thanks for the help DukeNuke2.

Last edited by myle; 03-09-2008 at 03:17 PM..
# 6  
Old 03-09-2008
should be in the same file... maybe grep für your username... or do you use nis or ldap on your system? then your account data is maybe on an other server (nis master...).

hth
# 7  
Old 03-09-2008
Quote:
Originally Posted by DukeNuke2
or do you use nis or ldap on your system? then your account data is maybe on an other server (nis master...).

Indeed. We use LDAP. So do I have to find the LDAP server which is used in order to modify my .profile?

Thanks for the help till now. I have found very useful things while I was searching for more informations.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Whats the profile file that is auto executed when I login

Hi, I dont find any .profile under my user home directory. These are the only files i see in my home directory. # ls -laq total 44 drwx------ 4 user1 adm 4096 Nov 23 05:10 . drwxr-xr-x. 12 root root 4096 Nov 22 13:05 .. -rw-r--r-- 1 user1 adm 18 Nov 22 13:05 .bash_logout... (3 Replies)
Discussion started by: mohtashims
3 Replies

2. UNIX for Dummies Questions & Answers

login profile[solved]

i vi .profile Set DATE `date +%m%d%Y%H%M`, but after logout/login, echo $DATE, it shows: Fri Mar 23 15:01:53 EDT 2012, i want to show: 032320121501 please ignore. vi /etc/profile, and export DATE=`date +%m%d%Y%H%M`, worked fine now. (0 Replies)
Discussion started by: lawsongeek
0 Replies

3. Shell Programming and Scripting

difference between .login, .tcshrc ,.profile

Could you please explain me what is the difference between .login, .tcshrc ,.profile file . Can I keep .tcshrc file in two different location .Actually my problem is I have one server in which another server is mounted so I have two programs which refers to two different versions of java and I need... (1 Reply)
Discussion started by: maitree
1 Replies

4. Shell Programming and Scripting

Crontab jobs don't see variables defined in /etc/profile

Is it true that Crontab jobs don't see variables defined in /etc/profile? How to get around that? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

5. UNIX for Dummies Questions & Answers

Question on .profile login script

Hey everyone, I'am a little new here and experincing Unix for the first time. I was wondering if somone could help me with this question i'am a bit stuck on Looking at the content of .profile login script The .profile file is in your login directory. It is a startup script file... (1 Reply)
Discussion started by: worldsoutro
1 Replies

6. Shell Programming and Scripting

diffrence between .cshrc .login .profile

Hi.. i was just looking to know the diffrence between this three terms 1) .cshrc 2) .login 3) .profle but iam failed to findout the exact diffrent Please can any one share the diffrence between this regards Syed (1 Reply)
Discussion started by: smuqtaderali
1 Replies

7. UNIX and Linux Applications

diffrence between .cshrc .login .profile

Dear experts ... Please any one can describe the diffrence between this three 1) . cshrc 2) .profile 3) .login cheers syed (1 Reply)
Discussion started by: smuqtaderali
1 Replies

8. UNIX for Dummies Questions & Answers

Clarification on .cshrc,.exrc,.login,.profile,.sh_history files

All, I had a request to delete filed under a directory that was 35 days old . And they asked me to scedule it in CRON . I have done that . I have use find and delete with mtime to perfrom this task . But my script is not deleting this .cshrc,.exrc,.login,.profile,.sh_history file... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

9. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
Login or Register to Ask a Question