Hi everone!
My computer is ultra80,Operation system 2.6,when I boot get a message "WARNING: ap: no database locations "
And then I can login root , but for other user can`t login and had message "no shell". I use csh,after login root when I su -user also had "noshell". /etc/passwd ,shadow /usr/bin/csh are no problem!
Thanks for your hel
Check the permissions on:
/
/usr
/usr/bin
/usr/bin/csh
My guess is that somehow ordinary users can't read csh or they can't execute it.
Mr Perderabo
I login root ,I see / /usr /usr/bin /usr/bin/csh are can permit execute ,I chmod all to 644. can you give me other advise
Thanks for your help
That is wrong.
chmod 755 / /usr /usr/bin
chmod 555 /usr/bin/csh
perderabo is very right...
644 permissions on / will prevent any users from logging in. You must have execute permissions on / for access to the /etc/passwd which is under / filesystem.
I know b/c I accidentally did this and had my production box down for 3+ hours for my stoopid mistake....
For directories it is 'seach permissions' not 'execute permissions' ... you don't execute directories.. ![]()
The no shell error message is due to your machine not having the users shell, the reason you can log with csh is propebly because csh is install on your machine and no other shell
for example user can be using ksh, sh or bash which are not install hence error message.
to find out what shell are installed on your machine check /bin or /usr/bin directory
if the shells are installed and still receiving error messages edit /etc/shells file and put the path to shell in the file.
Actually, this is a duplicate thread, hassan2. I will merge them, now. I didn't want to merge them earlier because the user is new to our site and was flustered with a severe problem.
[edit]
And now that we are all together....
This still leaves the "ap: no database locations" unanswered. I vaguely know that this relates to something called "alternate paths". But I've never used it. Maybe someone who has can comment on that.
Hi all
Thanks for your help ! I had chmod / /usr /usr/bin 755 and
chmod 555 /usr/bin/csh , but problem still exist.I boot get a message "WARNING: ap: no database locations " ,when I su -user also had "no shell".
I don't really know what to suggest then. You might try "pwck" to make sure that the passwd file is ok.
Mr Perderabo,
Thanks for your help,I only want to know what get a message "WARNING: ap: no database locations " , when I boot.
/etc/passwd ,shadow are no problem!
Thank you again