LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2009, 12:14 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
/bin/nologin: No such file or directory


I have been following the link for Setting up cyrus for POP3 in Fedora through http://kbase.redhat.com/faq/docs/DOC-8262.
When I tried to login as cyrus through:
Code:
[root@localhost ~]# su cyrus
su: /bin/nologin: No such file or directory
root@localhost ~]# id cyrus
uid=76(cyrus) gid=12(mail) groups=12(mail),76(saslauth)
[root@localhost ~]#

Also when I am trying to run:
Code:
[root@localhost ~]# service cyrus-imapd start
Importing cyrus-imapd databases: runuser: /bin/nologin: No such file or directory
                                                           [FAILED]
[root@localhost ~]# ^C


Whats the Issue?

Last edited by your_shadow03; 10-29-2009 at 12:26 PM.
 
Old 10-29-2009, 12:24 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I believe the shell should be /sbin/nologin. The easiest thing might be to make a symlink from /bin/nologin to /sbin/nologin.

Otherwise, edit the /etc/passwd file to point the cyrus user's shell at /sbin/nologin instead.
 
Old 10-29-2009, 12:29 PM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
[root@innovation1 ~]# cat /etc/passwd | tail -n 1
cyrus:x:76:12:Cyrus IMAP Server:/var/lib/imap:/bin/nologin
You have new mail in /var/spool/mail/root
[root@innovation1 ~]#


Is that enough?
but again that dont work.
 
Old 10-29-2009, 02:32 PM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Run something like locate nologin in a terminal. Use the full path of what you find in /etc/passwd


It might not exist in your distro (not familiar with fedora); you might also be able to use false (locate false)

Code:
wim@desktop1:~$ locate nologin
/etc/init.d/rmnologin
/etc/rc2.d/S99rmnologin
/etc/rc3.d/S99rmnologin
/etc/rc4.d/S99rmnologin
/etc/rc5.d/S99rmnologin
/lib/security/pam_nologin.so
/usr/sbin/nologin
/usr/share/man/cs/man8/nologin.8.gz
/usr/share/man/man5/nologin.5.gz
/usr/share/man/man8/nologin.8.gz
/usr/share/man/man8/pam_nologin.8.gz
/usr/share/man/ru/man8/nologin.8.gz
/usr/share/man/sv/man8/nologin.8.gz
wim@desktop1:~$
Code:
wim@desktop1:~$ locate false
/bin/false
/usr/lib/klibc/bin/false
/usr/share/man/man1/false.1.gz
wim@desktop1:~$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strange filename/file in my /usr/bin directory M$ISBS Linux - Security 1 06-04-2006 08:55 PM
/bin/false vs /sbin/nologin - difference? ziggie216 Linux - General 1 12-22-2005 03:59 AM
/bin/sh: ro: No such file or directory Kernel Panic rchrismon Linux - General 2 10-29-2005 10:30 PM
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 08:11 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM


All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration