Finding /etc/smb.conf

Discussion in 'Mac Basics and Help' started by Volante, Mar 17, 2008.

  1. macrumors regular

    Joined:
    Feb 8, 2008
    #1
    Hi, I am wondering where i can find the etc/smb.conf-file or the directory for that matter.
     
  2. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #2
    Uh.. you already know the path. /etc.

    But it's not viewable from the Finder by default. Those are hidden directories. So you should consider using the command line interface of the terminal to view and edit.
     
  3. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #3
    Surprisingly enough Finder -> Go -> Go to Folder can take you to hidden folders if you know the path.

    I'm still unsure of auto complete works in Leopard or not.
     
  4. thread starter macrumors regular

    Joined:
    Feb 8, 2008
    #4
    Thx! New problem. I get that i dont have enough rights to save the file?
     
  5. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #5
    I strongly suggest that you know what you're doing before you edit anything in /etc.
     
  6. thread starter macrumors regular

    Joined:
    Feb 8, 2008
    #6
    Hehe, I am a switcher. =) I need to add

    socket options = TCP_NODELAY IPTOS_LOWDELAY

    to fix my smb-transfer so i can get over my data =). I guess i need to edit as root? But, hmm?
     
  7. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
  8. thread starter macrumors regular

    Joined:
    Feb 8, 2008
    #8
    Ehm, can't i edit the file without resort to terminal, that feels like a step in the wrong direction.
     
  9. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #9
    Well, a large focus of Mac OS X is to produce a very powerful OS that also protects the users from themselves. So, knowing about using root, or the command line is a good way to do that for advanced tasks.
     
  10. thread starter macrumors regular

    Joined:
    Feb 8, 2008
    #10
    I guess will learn that in time as I work as a webdeveloper. I solved my transfer speed by using a drop box and a second xp machine to do the actual transfer. 68 minutes instead of 9h four 20 gig data.
     
  11. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #11
    Seriously, you want to use Terminal. I trust vi more then I trust a graphical text editor.
     
  12. macrumors 604

    MacsRgr8

    Joined:
    Sep 8, 2002
    Location:
    The Netherlands
    #12
    I know vi is the most powerful editor, but using pico (or nano) can simplify the use.
     
  13. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #13
    I was a fan of pico when I took C and Java back in college. I just use vi now since it's sometimes the only option in emergency situations.
     
  14. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #14
    I must admit. I prefer pico (and now nano) over vi. All I remember of vi is how to get out of it. :)

    Remember, you can't spell "evil" without "vi"! ;)
     
  15. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #15
    Let's not drag onto too far about our text editors.

    Code:
    sudo pico /etc/smb.conf
    That command will give you permission to make changes to /etc/smb.conf and a rather friendly text editor called pico (nano).

    Please make sure you really know what you're doing.

    Code:
     We trust you have received the usual lecture from the local System
     Administrator. It usually boils down to these three things:
    
        #1) Respect the privacy of others.
        #2) Think before you type.
        #3) With great power comes great responsibility.
     
  16. macrumors 603

    richard.mac

    Joined:
    Feb 2, 2007
    Location:
    51.50024, -0.12662
    #16
    whats the difference between nano and pico? i just use nano as it sounds more "Applely"

    i must admit its easier to use a text editor in the Terminal for files that have sudo permissions but for other files i just drag them into TextEdit. keeping TextEdit in the dock is useful to!
     
  17. macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #17
    nano is a clone of pico. My experience is only with vi, not vim, and pico.
     
  18. Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #18
    LOL! That's absolutely classic!!

    I think the only editors I haven't used are cat (concatenate edits?), needles, and butterflies.

    I used to code MUDs in ed. Horrible stuff. MUDs in emacs were much, much better. Except for needing X11.

    Agreed. nano is pico++.
     

Share This Page