Not running xinetd process & no access on port 901
Hi,
Have a problem with accessing my router's Samba 2 settings on a port 901. Have installed Samba by wengi's tutorial, but than when typing "ps axf", don't see there line with "xinetd". When xinetd is not running, than I can't access 901, right?
Can anyone try to help me?
My output from "ps axf" is:
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
45 ? S 0:00 telnetd
50 ? S 0:01 httpd eth1
54 ? S 0:00 klogd
55 ? S 0:00 syslogd -m 0 -O /tmp/syslog.log -S -l 7
58 ? S 0:00 [dnsmasq]
60 ? Ss 0:01 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
63 ? S 0:00 [khubd]
73 ? Ss 0:00 lpd
75 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
79 ? S 0:00 [usb-storage-0]
80 ? S 0:00 [scsi_eh_0]
81 ? S 0:00 [usb-storage-1]
82 ? S 0:00 [scsi_eh_1]
95 ? Ss 0:00 infosvr br0
96 ? Ss 0:00 watchdog
100 ? Ss 0:00 \_ ntp
109 ? S 0:00 dropbear
191 ? Ss 0:00 \_ dropbear
199 pts/0 Ss 0:00 \_ -sh
208 pts/0 R+ 0:00 \_ ps axf
117 ? S 0:00 udhcpc -i eth1 -p /var/run/udhcpc0.pid -s /tmp/udhcpc
139 ? S 0:00 [kjournald]
140 ? S 0:00 [kjournald]
141 ? S 0:00 [kjournald]
144 ? Ss 0:00 /usr/sbin/vsftpd
155 ? Ss 0:00 /opt/sbin/cron
174 ? Ss 0:00 /opt/sbin/smbd -D
176 ? Ss 0:00 /opt/sbin/nmbd -D
197 ? S 0:00 upnp -D -L br0 -W eth1
Notworking log in to Samba, security = USER
Quote:
Originally Posted by
wengi
@Kubicz
check your rc.unslung and corresponding xinetd rc file.
Can you start xinetd manually? (with start/stop option?)
wengi
Hi wengi,
Thanks a lot, problem solved - it was in a user settings, because I changed my root user, but not changed settings of corresponding files.
Now have another problem, I feel like noob, because I had to deal this situation year ago and now cannot remember, how have a solved it.
Samba is set, but I cannot access even a folders, because have security set to USER. When typing address of the router than bumps a window, where I can put a user name and password, but cannot access it.
Tried several things, have setted /opt/etc/samba/smbpasswd, where I have a password, but not working. When having security in smb.conf set to SHARE, it works, but I need to have it secured -> USER.
Thanks for help!
Help Needed - mini_sendmail
@wengi and all
I have been able to get the mini_sendmail working - for all, like me, that did not know here are the commands -
Code:
printf 'Subject: The subject of the email \r\nThis is the body text of the email' |mini_sendmail -t -ftest@test.com -ssmtp.mail.com -v email@test.com
printf 'Subject: The subject of the email \r\nThis is the body text of the email'
This just creates the email, echo won't work because we need to use the "\r\n" to make a newline and return so that the Subject: and body text are separate.
-t (Im not sure why this is needed)
-f (the "from" email *note no space -f)
-s (your isps smtp server *note no space after -s)
-v (the recipient's email * note the space after -v)
Now what I would like to do is
Write a script that runs from cron that will send me an email when an event happens.
The event would be the completion of a torrent or a dropbear logon etc.
How would I do this - I am thinking that the script should check the syslog.log ever hour and extract the log messages that are of interest and send them on .....
Can someone (wengi :) ) give me some help on how to get this done.
Thanks
Velcrow
/.watchdog: Read-only file system
I have transmission running using transmissioncli, but cannot get it to run correctly via the web interface. The web page comes up, but it does not trigger watchdog correctly, I think.
When I run transmission_watchdog at the telnet prompt, I get this message:
touch /.watchdog: Read-only file system
in the WEB page, I get the following when running watchdog:
touch: /.watchdog: Read-only file system BusyBox v1.1.3 (2008.03.17-18:24+0000) multi-call binary Usage: rm [OPTION]... FILE... /opt/sbin/transmission_watchdog: kill: 304: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] transmissiond: option requires an argument -- i Usage: transmissiond [options] active-torrents.txt [options] Options: -h, --help Print this help and exit -v, --verbose Verbose level implies foreground (0 to 2, default = 0) -p, --port Port we should listen on (default = 51413) -u, --upload Maximum upload rate (-1 = no limit, default = 20) -d, --download Maximum download rate (-1 = no limit, default = -1) -f, --finish Command you wish to run on completion -n --nat-traversal Attempt NAT traversal using NAT-PMP or UPnP IGD -w, --watchdog Watchdog interval in seconds (default = 600) -i, --pidfile PID file path -e, --encryption Turns on encryption as preferred Signals: HUP reload active-torrents.txt and start/stop torrents USR1 write .status files into torrent directories USR2 list active torrents rm: cannot remove `/.watchdog': No such file or directory
Any ideas what I did wrong? Is there somewhere that I need to configure where the .watchdog file is located?
I am using 1.22-3 version of transmission.
Problem with Transmission!
After my first installation of Oleg's FW I need some help with Transmission...
When I enter command:
Code:
transmission_watchdog
as it is explained in the manual, I get:
Code:
-sh: transmission_watchdog: not found
When I enter command:
I get:
Code:
[admin@WL-001BFC58826B root]$ ps axf PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
59 ? S 0:00 telnetd
64 ? S 0:01 httpd vlan1
71 ? S 0:00 klogd
72 ? S 0:00 [dnsmasq]
77 ? S 0:00 [khubd]
86 ? Ss 0:00 lpd
88 ? Ss 0:00 p9100d -f /dev/usb/lp0 0
91 ? Ss 0:00 waveservermain
93 ? Ss 0:00 rcamdmain
97 ? S 0:00 [usb-storage-0]
98 ? S 0:00 [scsi_eh_0]
105 ? Ss 0:00 infosvr br0
106 ? Ss 0:00 watchdog
110 ? Ss 0:00 \_ ntp
126 ? S 0:00 udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
129 ? S 0:00 dropbear
130 ? Ss 0:01 \_ dropbear
189 pts/0 Ss 0:00 \_ -sh
200 pts/0 R+ 0:00 \_ ps axf
136 ? S 0:00 upnp -D -L br0 -W vlan1
152 ? S 0:00 [kjournald]
153 ? S 0:00 [kjournald]
156 ? Ss 0:00 /usr/sbin/vsftpd
183 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7
188 ? Ss 0:00 /opt/sbin/cron
The content of the following files is:
transmission.conf
Code:
#Uncomment the following for UPNP NAT traversal
#NAT_TRAVERSAL=--nat-traversal
# If the following limit is reached watchdog will not enqueue new one
MAX_ACTIVE_TORRENTS=5
SYSLOG=/opt/var/log/syslog.log
crontab
Code:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
*/30 * * * * admin nice transmission_watchdog
0 0 * * * admin /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null
logrotate.conf
Code:
ompress
/opt/var/log/syslog.log {
size 1024k
weekly
rotate 9
postrotate
killall -HUP syslogd
endscript
}
include /opt/etc/logrotate.d
Please, what should I do to make it working? :(
I changed the FW just for the Torrents