Forum Discussion

Simon78's avatar
Simon78
Level 3
10 years ago

5230 Appliance save changes to smb.conf

Symantec 5230 appliance running 2.6.0.3

Can anyone provide instructions on how to edit and save the changes to the /etc/samba/smb.conf file.

I need to copy the DataCollect.zip file to my laptop to send on to Symantec, though I'm unable to do this as I receive an access denied message when pasting the file onto my laptop, I've seent tech note 222263, which says the smb.conf needs the wide links setting to yes.

I can edit the file with vi once in maintenance mode and elevated, but I'm unable to save the file in order to restart the samba daemon. When trying to save the file I receive

E505: "/etc/samba/smb.conf" is read only (add ! to override)

So trying the vi command ":w!" produces

"/etc/samba/smb.conf" E212: Can't open file for writing
Press ENTER or type command to continue

Any advice???

  • Solved..!

    Using the vi command :x!

     

    Strange that :w and :w! would not write to the file...

5 Replies

  • Did you disable the CSP protections completely before editing?  That could be the problem.

  • Yes CSP has been disabled for a 30 minute period using the command, once in maintenance mode and elevated.

    /opt/Symantec/scspagent/IPS/sisipsoverride.sh

  • Did you select option 1 or 2 when disabling?  If I recall correctly, you may have to choose 2, to completely turn it off to edit smb.conf.

  • Solved..!

    Using the vi command :x!

     

    Strange that :w and :w! would not write to the file...