cancel
Showing results for 
Search instead for 
Did you mean: 

5230 Appliance save changes to smb.conf

Simon78
Level 3

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???

1 ACCEPTED SOLUTION

Accepted Solutions

Simon78
Level 3

Solved..!

Using the vi command :x!

 

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

View solution in original post

5 REPLIES 5

chashock
Level 6
Employee Accredited Certified

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

Simon78
Level 3

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

chashock
Level 6
Employee Accredited Certified

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.

Simon78
Level 3

Solved..!

Using the vi command :x!

 

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

Simon78
Level 3

No option 1 works fine. :)