Net :: How to modify Samba extension



Quote (andrewb @ Aug. 02 2007,21:08)
RobertS:

Thanks for clearing that up. I suspected it was all just down to a limitation of the unionfs system.

Juanito:

If you load samba.unc at boot time & then edit smb.conf in /etc/samba using vi (the file is invisible but it edits ok - you need to be root - i.e. use 'sudo vi smb.conf'). Now add this file (etc/samba/smb.conf) to your filetool.lst so that it gets backed up. All will now work automatically on boot as Samba will be loaded first & then the restore script will put the edited smb.conf back where you want it (it still isn't visible under etc/samba, but is editable with vi - it is visible under ramdisk/etc/samba & can be edited there ok as root [run emelfm as root & edit from there]). You can run smbd & nmbd in bootlocal.sh to get the server started. I have used this for file-sharing with M$ clients & it works well.

Some reference to this mess should be written to the samba.unc info file; nothing like loading the unc and finding two unwrittable smb.conf files in three places with the fourth one you can actually edit hidden (I'd still love to have an explanation as to why it doesn't show up with a find or ls command).  

...talk about crazy making.,...followed by the hplip-cups disaster; suicide may preclude printing.

Quote
...talk about crazy making.,...followed by the hplip-cups disaster; suicide may preclude printing.

- do you mean there's a problem with the hplip extension or a problem with hplip & cups in general?

Quote (Juanito @ Dec. 29 2007,09:28)
Quote
...talk about crazy making.,...followed by the hplip-cups disaster; suicide may preclude printing.

- do you mean there's a problem with the hplip extension or a problem with hplip & cups in general?

I haven't really got past samba problems.  I've got two Dell latitude clones with basically all the same software on them, and identical smb.conf  files.  My XP computer sees one of them, no problem, but not the other.  I've about exhausted every possible variable with the same result (changing it's place on the network, etc., etc.)  

Also, loading samba.unc overwrites the edited /etc/samba/smb.conf files, and I haven't found a way to turn samba off and back on without rebooting. (there's no "smb restart", and it basically loads with the wrong smb.conf file.  

If  I get samba working, I'll try the drivers via networking. I had printing working, as I recall, only with a parallel port connection due to some problem recognizing the USB port.

Wouldn't it be nice to just plug your network printer into a router and have it immediately recognized?  (just joking.. :)

Quote (jpeters @ Dec. 29 2007,19:22)
I haven't found a way to turn samba off and back on without rebooting.

killall -TERM smbd
killall -TERM nmbd
/usr/sbin/smbd -D
/usr/sbin/nmbd -D

Quote (john.martzouco @ Dec. 29 2007,22:22)
Quote (jpeters @ Dec. 29 2007,19:22)
I haven't found a way to turn samba off and back on without rebooting.

killall -TERM smbd
killall -TERM nmbd
/usr/sbin/smbd -D
/usr/sbin/nmbd -D

Looks drastic!  Anyway, I got a "no process terminated" error.  
Timely post, however. I found the latter two commands on p. 307 of the Damn Small Linux book a  few hours ago, which enabled XP to see my computer (after I entered a search IP). I'm still working on trying to get it to accept a password, however. Maybe the smbpasswd file is corrupted.

Edit: the killall command works, although still no luck getting XP to accept the password. Very weird...  with the other laptop it had no problem taking a password (and didn't need the nmbd, smbd commands).   I'm getting a long list of errors using the /opt/bin/samba/usr/bin/smbpasswd command before it states that the usr name has been created.  I think I've wasted enough time shooting in the dark on this....

Next Page...
original here.