Operating System - HP-UX
1834639 Members
2622 Online
110069 Solutions
New Discussion

Re: Cannot chdir to /var/news

 
Sergej_5
Regular Advisor

Cannot chdir to /var/news

Hi!
What above subject means after i login into my hp-ux 11.11 (hp 9000 rp3410)

Brgds,
Sero
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Cannot chdir to /var/news

Hi Sero:

The error simply means that you don't have a '/var/news' directory or that you do but you don't have the permission to 'cd' into it.

Examine your login profile(s) to see where the action is being attempted.

Regards!

...JRF...
DCE
Honored Contributor

Re: Cannot chdir to /var/news

Sero,

It means one of two things: either the directory does not exist, or you do not have the requisite permissions.

Once you are logged in, change to the /var directory. Once there, do a listing (ll) to see if the news subdirectory exists. If it does not, then create one. If it does, but you cannot access it, talk to your sysadmin to get the owner, group, or permissions changed.
Sergej_5
Regular Advisor

Re: Cannot chdir to /var/news

Ok! I got that! :)
But i thougth which process controls this message? What is the way to shut it down?

Brgds,
Sero
James R. Ferguson
Acclaimed Contributor

Re: Cannot chdir to /var/news

Hi (again) Sero:

If you look at '/etc/profile' you will see:

if [ -f /usr/bin/news ]
then news -n
fi

From your problem description, this is your culprit. Again, the '/var/news' directory should be present and readable by all.

Alternatively, you could comment-out the above code.

Regards!

...JRF...