You are reading a single comment by @EB and its replies. Click here to read the full conversation.
  • help!

    I’d like to add an entry to an (working) samba smb.conf file in REHL 4, but back it up first and have the ability to copy the original back in if I eff things up

    So background is that SMB1 has been disabled in light of the wannacry etc. attacks in May, however that has killed Windows 7 client connections to a Linux VM with some samba shares, so I need to enable SMB2

    So far I’ve copied the working smb.conf via command cp /etc/samba/smb.conf ~ and I see that copy file in root home, so I know I have a backup of the known good config

    Google suggests cp /etc/samba/smb.conf /etc/samba/smb.conf.backup makes a copy and cp /etc/samba/smb.conf.backup /etc/samba/smb.conf would copy my backup back in

    What I’m not entirely sure of is whether I need to edit the ‘running’ config when in the ‘backup’ context (cp /etc/samba/smb.conf /etc/samba/smb.conf) and then if I save that, does whatever change I make become the working file?

    I’m confused

About

Avatar for EB @EB started