Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - telnet and ftp not working after mount root directory( / ) to QNX6 fs: (3 Items)
   
telnet and ftp not working after mount root directory( / ) to QNX6 fs  
software: QNX 7.1

before,  root directory( / ) is mount on ifs by default, telnet and ftp is working well. 

when i mount a EMPTY qnx6 fs on /, just like
mount -t qnx6 /dev/emmc0t179 /

after that, all files on original ifs are already exist, everything seems same as before.
but when i telnet to my board, there is an error message on my termial:


QNX Neutrino (localhost) (ttyp0)

login: root
Login incorrect

and i already tried restart inetd, there are some output on inetd debug messages:
# inetd -d
ADD : telnet proto=tcp, wait.max=0.40, user:group=root: builtin=0 server=/usr/sbin/telnetd policy=
registered /usr/sbin/telnetd on 4
ADD : ftp proto=tcp, wait.max=0.40, user:group=root: builtin=0 server=/usr/sbin/ftpd policy=
registered /usr/sbin/ftpd on 5
someone wants telnet
accept, ctrl 3
204822 execl /usr/sbin/telnetd

ftp is same , i got similar result.

does anyone can help? thanks.

Regards
Re: telnet and ftp not working after mount root directory( / ) to QNX6 fs  
PAM, which is used for authenticating users, requires that all directories leading up to the directories containing its 
config files and modules are owned by root and do not have group or other write permissions.

When you mount another file system at /, it will likely be making / group writable. To fix this you need to mount the 
file system with the option mntperms=755.
Re: telnet and ftp not working after mount root directory( / ) to QNX6 fs  
Thanks very much, it is working well after add mntperms option.