DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-04-29 09:42:49

farmwald
New member
Registered: 2008-04-29
Posts: 4

The Howto Change_share_name doesn't work for me...

I'm trying to follow the howto: Change_share_name.

I'm using 1.04 firmware on a DNS-323. I have a Raid-0 (2x 1tb drives). /mnt/HD_a2 is mounted as the file system. I use the funplug to get telnet access. I haven't added any users or groups, or modifed the network access (all are defaults).

Problems:
If I save the config file from the web page, there is no entry for "[ Volume_1 ]", in fact, no reference to Volume 1 at all.

There is no file /mnt/HD_a4/.systemfile/.smb.ses that I can find. In fact, I can't find any files named "*.ses".

So, what am I doing wrong?

Also, where are the config files stored, and how does the boot sequence generate the /etc/samba/smb.conf file?

Offline

 

#2 2008-04-29 23:52:42

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: The Howto Change_share_name doesn't work for me...

First, I would advise against the restore configuration method of making changes
to your DNS-323.  There are several post of users who unknowingly changed the
line endings of the saved configuration file (by using windows editors) which caused
their DNS-323 to stop working correctly.

Another aspect of the restore configuration method is that (I believe) it writes the
changes directly to the NVRAM flash memory, so if you make any mistakes you can't
just reboot to clear the changes.

I would suggest (in a telnet session) you make a copy of the /etc/samba/smb.conf file
and edit it to add your desired options.  Then copy is over the existing /etc/samba/smb.conf
file and restart the samba process.  Test your changes from windows, and once you get the
correct result, create a script which will run at start up that will copy your customized smb.conf
file over the /etc/samba/smb.conf file and restart the samba process.

Last edited by mig (2008-04-29 23:53:51)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2008-04-30 05:25:23

farmwald
New member
Registered: 2008-04-29
Posts: 4

Re: The Howto Change_share_name doesn't work for me...

Thanks. I'll try your suggestion.

Do you have any idea why I'm not seeing the same files others are seeing (with v1.04), i.e. the .smb.ses doesn't exist for me,
and the saved config file doesn't mention volume_1?

Offline

 

#4 2008-04-30 06:26:51

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: The Howto Change_share_name doesn't work for me...

I have a DNS-323 (A1) with FWv1.03 and I see both the volume_1 in the
saved configuration file and the .smb.ses file

I have another (B1) with FWv1.04 and I see the volume_1 in the
saved configuration but no .smb.ses file

So, I don't know what to tell, ya? I have mixed results, too.

Do you see a [Volume_1] section in your /etc /samba/smb.conf file?


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#5 2008-04-30 08:51:46

farmwald
New member
Registered: 2008-04-29
Posts: 4

Re: The Howto Change_share_name doesn't work for me...

> Do you see a [Volume_1] section in your /etc /samba/smb.conf file?

Yes, but not in the CfgBackup file (saved by the web iface).

Offline

 

#6 2008-04-30 09:42:41

ldomaigne
Member
Registered: 2007-06-24
Posts: 28

Re: The Howto Change_share_name doesn't work for me...

Hello Farmwald!

I spent more than one hour yesterday searching in vain  the .smb.ses after upgrade of my fw to 1.04...

From my understanding, this file contains the part of the samba configuration that need to be preserved accross firmware upgrade. However, in the case of fw 1.04, the existing .smb.ses is deleted, because new fields for the configuration are present (Oplocks / Map Archive under Web access Advanced / Network Access Settings).

The important point to note is that the .smb.ses file is created only when setting the Network Access up. If you want the default network access, then remove the Volume_1 and Volume_2 share access, re-create it and save. This should do the trick.

HTH,
LD

Offline

 

#7 2008-05-01 04:45:36

farmwald
New member
Registered: 2008-04-29
Posts: 4

Re: The Howto Change_share_name doesn't work for me...

Thanks!

Deleting the share under Advanced/Network Access, and then recreating it worked, and the .smb.ses file now exists.

I edited it, rebooted and all is happy.

Maybe someone should edit the FAQ?

Next, I'll try creating a second share & see if I can get multiple shares with choice of names.

Will report back later.

Offline

 

#8 2008-05-01 10:48:39

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: The Howto Change_share_name doesn't work for me...

I'll update the wiki entry; I added the CRLF warnings and the .smb.ses details.

The default settings are embedded in one (or more) of the binaries that boots the DNS-323 so the .smb.ses file is only created if you change from the defaults as you discovered. I intended the existing comment from the FAQ to highlight this; but on re-reading I still know what I meant but see that it may not have been explicit enough:

"(once a new share has been created or the default share settings updated)"

Additional shares you create with the web interface should go to the appropriate .smb.ses file (depending on volume-1 or 2); you can definitely edit them in the file. However; adding extra settings to the file may or may not work. When I tried it seemed to work fine for samba but confused the web interface badly sad

-Jeff

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB