FreeNAS CIFS/Samba changing Guest Account ‘FTP’ not working

Using FreeNAS 0.7 Khasadar (revision 4919) with CIFS/SMB Authentication Anonymous, I changed the Guest account for but it is not actually applying it to the configuration, it is a trivial bug and here’s a small dirty workaround.

1 – Create an excutable file containing this:

[bash]
#!/bin/sh

# find and replace ‘ftp’ by ‘transmission’
sed -i. ‘s/ftp/transmission/g’ /etc/rc.d/samba

# restart samba to use the new config
/etc/rc.d/samba restart
[/bash]

2 – Go in System|Advanced|Command scripts and add an entry for your script in “PostInit”

For those who are interested, I am doing this because my network is not accessible from the outside and I didn’t want to bother with user privileges. I am using my FreeNAS box to share media files downloaded using Transmission and I wanted everybody to be able to access/modify/delete them, so I change the guest account to be “transmission” 🙂

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.