SAMBA broken

230 views
Skip to first unread message

Stealth

unread,
Jul 25, 2013, 8:57:47 AM7/25/13
to al...@googlegroups.com

Hello all,

I was working on some scripts (backups, etc) when I certainly make a big mistake somewhere, because now samba is down ... To be more precise the service start without any error and all the others works good (minidlna, sshd, lighttpd)

I saw no change in my smb.conf, but I can't connect, tested with some Windows and Linux 

With Linux:

smbclient -L //192.168.0.250/Volume_1 -U fred
Enter fred's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.21]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

DNS 323 logs

[2013/07/25 12:38:20.185709,  0] smbd/service.c:1002(make_connection_snum)
  canonicalize_connect_path failed for service IPC$, path /tmp

I saw that this kind of problem could be with right/profile, the rights seems good, 777 to /mnt and /mnt/sda2

# more /root/.profile
export TERM=linux
export HOME=/root

alias his="cat ~/.ash_history | grep "
alias l="ls -l"

stty stop ^Q
resize

[Global]
        workgroup = workgroup
        server string = Nostromo

        security = user
        encrypt passwords = yes
        passdb backend = smbpasswd
        smb passwd file = /etc/samba/smbpasswd
        username map = /etc/samba/smbusers

        enable core files = no
        syslog only = yes
        # additions to 'hosts allow' at the line end, space separated!
        socket options = IPTOS_LOWDELAY TCP_NODELAY
        printcap name = /dev/null
        load printers = no
        printing = bsd

[partage]
        comment = Nostromo_partage
        path = /mnt/sda2/partage
        valid users = guest
        available = yes
        read only = no
        inherit permissions = yes

[Volume_1]
        comment = Nostromo_sda
        path = /mnt/sda2
        valid users = fred
        available = yes
        read only = no
        inherit permissions = yes

I tried to install the samba package without success, I don't know what to think ...

If someone has a idea please tell me, it's a very annoying problem

Thank

João Cardoso

unread,
Aug 14, 2013, 2:47:11 PM8/14/13
to al...@googlegroups.com


On Thursday, July 25, 2013 1:57:47 PM UTC+1, Stealth wrote:

Hello all,

I was working on some scripts (backups, etc) when I certainly make a big mistake somewhere, because now samba is down ... To be more precise the service start without any error and all the others works good (minidlna, sshd, lighttpd)

I saw no change in my smb.conf, but I can't connect, tested with some Windows and Linux 

With Linux:

smbclient -L //192.168.0.250/Volume_1 -U fred
Enter fred's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.21]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

DNS 323 logs

[2013/07/25 12:38:20.185709,  0] smbd/service.c:1002(make_connection_snum)
  canonicalize_connect_path failed for service IPC$, path /tmp

The issue must be with /tmp or /var/tmp, which seems to be used by samba $IPC internal share, not sure...

# smbtree -N
HOMENET
        \\NAS                           DNS-323 NAS
                \\NAS\IPC$              IPC Service (DNS-323 NAS)
                \\NAS\Public (Read Only)        Public Area that everybody can read
                \\NAS\Public (Read Write)       Public Area where everybody can read and write
                \\NAS\Users             Users private folder

# l /var/
total 12
lrwxrwxrwx    1 root     root            10 Aug 14 03:48 cache -> /tmp/cache
drwxr-xr-x    2 root     root          4096 Jul  1 20:32 db
drwxr-xr-x    9 root     root          4096 Aug 13 00:25 lib
lrwxrwxrwx    1 root     root             6 Sep 24  2010 lock -> ../tmp
lrwxrwxrwx    1 root     root             8 Aug 14 03:48 log -> /tmp/log
lrwxrwxrwx    1 root     root             8 Aug 14 03:48 run -> /tmp/run
drwxr-xr-x    8 root     root          4096 Jul 28 21:35 spool
lrwxrwxrwx    1 root     root             6 Sep 24  2010 tmp -> ../tmp

# df -h /tmp
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   104.0M    960.0K    103.1M   1% /tmp

Stealth

unread,
Aug 15, 2013, 5:29:05 AM8/15/13
to al...@googlegroups.com
Ok thank, it was bad right on / (ouch !), all seem works good now, except one strange thing, I can't save my crontabs, it works without problem but if I reboot there is nothing at all with crontab -l ...
save settings option is good with all services, but without action for cron (No modified files since last saves)


João Cardoso

unread,
Aug 15, 2013, 9:18:31 AM8/15/13
to al...@googlegroups.com


On Thursday, August 15, 2013 10:29:05 AM UTC+1, Stealth wrote:
Ok thank, it was bad right on / (ouch !), all seem works good now, except one strange thing, I can't save my crontabs,

Do you mean "yours" crontabs as a normal user? Only 'root' crontabs are saved in flash.
 
it works without problem but if I reboot there is nothing at all with crontab -l ...

Just tested it now and it works fine
 
save settings option is good with all services, but without action for cron (No modified files since last saves)

FredB

unread,
Aug 15, 2013, 9:40:46 AM8/15/13
to al...@googlegroups.com
Le 15/08/2013 15:18, João Cardoso a écrit :


On Thursday, August 15, 2013 10:29:05 AM UTC+1, Stealth wrote:
Ok thank, it was bad right on / (ouch !), all seem works good now, except one strange thing, I can't save my crontabs,

Do you mean "yours" crontabs as a normal user? Only 'root' crontabs are saved in flash.


Yes root


 
it works without problem but if I reboot there is nothing at all with crontab -l ...

Just tested it now and it works fine

So still a problem for me, how I can "force" the save ?


 
save settings option is good with all services, but without action for cron (No modified files since last saves)

this is a bug, thanks 


Ok



João Cardoso

unread,
Aug 15, 2013, 9:49:52 AM8/15/13
to al...@googlegroups.com


On Thursday, August 15, 2013 2:40:46 PM UTC+1, Stealth wrote:
Le 15/08/2013 15:18, João Cardoso a écrit :


On Thursday, August 15, 2013 10:29:05 AM UTC+1, Stealth wrote:
Ok thank, it was bad right on / (ouch !), all seem works good now, except one strange thing, I can't save my crontabs,

Do you mean "yours" crontabs as a normal user? Only 'root' crontabs are saved in flash.


Yes root

 
it works without problem but if I reboot there is nothing at all with crontab -l ...

Just tested it now and it works fine

So still a problem for me, how I can "force" the save ?

Modify (touch) any other file that is saved on flash, such as inetd, samba...
From the command line, e.g. 'touch /etc/inetd.conf'

The following files are watched for "changes" (really modification time stamp, not contents)

/etc/dropbear/dropbear_dss_host_key   /etc/dropbear/dropbear_rsa_host_key
/etc/network/interfaces               /etc/web-secret
/etc/passwd   /etc/shadow     /etc/group
/etc/TZ               /etc/timezone
/etc/hosts            /etc/resolv.conf        /etc/hostname
/etc/samba/smbpasswd  /etc/samba/smbusers     /etc/samba/smb.conf
/etc/samba/credentials.*      /etc/exports
/etc/dnsmasq.conf     /etc/dnsmasq-opts       /etc/dnsmasq-hosts 
/etc/dnsmasq-resolv   /etc/rsyncd.conf        /etc/rsyncd.secrets
/etc/vsftpd.conf      /etc/vsftpd.user_list
/etc/inetd.conf               /etc/httpd.conf
/etc/misc.conf                /etc/inadyn.conf        /etc/ipkg.conf
/etc/ntp.conf         /etc/ntp.drift          /etc/adjtime.conf
/etc/sysctrl.conf     /etc/msmtprc            /etc/msmtprc.alias
/etc/smartd.conf      /etc/wgetrc                     /etc/ssl/certs/server.pem
/etc/backup.conf      /etc/syslog.conf        /etc/sysctl.conf
/etc/modprobe.conf    /usr/www/cgi-bin/bookmarks.html

FredB

unread,
Aug 15, 2013, 10:02:14 AM8/15/13
to

Modify (touch) any other file that is saved on flash, such as inetd, samba...
From the command line, e.g. 'touch /etc/inetd.conf'

The following files are watched for "changes" (really modification time stamp, not contents)

/etc/dropbear/dropbear_dss_host_key   /etc/dropbear/dropbear_rsa_host_key
/etc/network/interfaces               /etc/web-secret
/etc/passwd   /etc/shadow     /etc/group
/etc/TZ               /etc/timezone
/etc/hosts            /etc/resolv.conf        /etc/hostname
/etc/samba/smbpasswd  /etc/samba/smbusers     /etc/samba/smb.conf
/etc/samba/credentials.*      /etc/exports
/etc/dnsmasq.conf     /etc/dnsmasq-opts       /etc/dnsmasq-hosts 
/etc/dnsmasq-resolv   /etc/rsyncd.conf        /etc/rsyncd.secrets
/etc/vsftpd.conf      /etc/vsftpd.user_list
/etc/inetd.conf               /etc/httpd.conf
/etc/misc.conf                /etc/inadyn.conf        /etc/ipkg.conf
/etc/ntp.conf         /etc/ntp.drift          /etc/adjtime.conf
/etc/sysctrl.conf     /etc/msmtprc            /etc/msmtprc.alias
/etc/smartd.conf      /etc/wgetrc                     /etc/ssl/certs/server.pem
/etc/backup.conf      /etc/syslog.conf        /etc/sysctl.conf
/etc/modprobe.conf    /usr/www/cgi-bin/bookmarks.html


Ok solved, thanks, so no link with my previous problem



Reply all
Reply to author
Forward
0 new messages