Results 1 to 6 of 6
  1. #1
    CoP Dynamis
    Join Date
    Oct 2006
    Posts
    279
    BG Level
    4

    Need help with samba and linux

    At work we are trying to automate the process of adding groups and users. The problem we are having is with the samba server and windows permissions. Is there a SAFE way to edit the smb.conf through linux without fucking everything up?

    I stress safe because the drive that we are trying to do this on is 40TB worth of important data.

  2. #2
    Sea Torques
    Join Date
    Oct 2006
    Posts
    709
    BG Level
    5
    FFXI Server
    Carbuncle

    Not quite comprehending what you mean by "safe". smb.conf should be completely editable manually using 'vi' or you could automate the edits by using a 'sed' script. All you have to do afterwards is run '/etc/init.d/smb reload' to get it to re-read the smb.conf without having to restart the smb process.

  3. #3
    CoP Dynamis
    Join Date
    Oct 2006
    Posts
    279
    BG Level
    4

    I meant safe by if a script we use screws up, the permissions for the whole drive would be lost. When rereading the smb.conf file, does it interrupt usage at all?

  4. #4
    Bockage
    Guest

    If you're worried about the smb.conf file, just make a copy if it before you do anything.

  5. #5
    Sea Torques
    Join Date
    Oct 2006
    Posts
    709
    BG Level
    5
    FFXI Server
    Carbuncle

    Quote Originally Posted by Lost View Post
    I meant safe by if a script we use screws up, the permissions for the whole drive would be lost. When rereading the smb.conf file, does it interrupt usage at all?
    Nope, that's what the '/etc/init.d/smb reload' command is for. It tells it to re-read the configuration without having to stop/start the daemon. And like the above poster stated, make backups before modifying the file. a simple command like:
    Code:
    cp smb.conf smb.conf.`date +%Y%m%d%H%M%S`
    will copy the smb.conf to a time-stamped smb.conf.YYYYMMDDHHMMSS which you can revert to if need be.

  6. #6
    CoP Dynamis
    Join Date
    Oct 2006
    Posts
    279
    BG Level
    4

    Thanks I appreciate your help with the matter.

Similar Threads

  1. Need help with new laptop and games
    By Deband in forum Tech
    Replies: 7
    Last Post: 2010-03-05, 09:46
  2. Replies: 6
    Last Post: 2009-02-10, 04:22