 |
10-22-2003, 10:32 AM
|
#1 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Reno, NV
Posts: 776
| » 
Edit smb.conf
Can i edit this file from the command line? I am thinking in terms of the edit command in windows that allows you to edit config files.
Thank you for any help. |
| |
10-22-2003, 10:44 AM
|
#2 (permalink)
| | Registered User
Join Date: Oct 2002 Location: Scotland, UK
Posts: 2,946
|
Yes. However if you're unfamiliar with UNIX screen editors (ie Vi or Emacs) then you might get scared off. There's a tutorial for Vi here: http://www.gentoo.org/doc/en/vi-guide.xml
The advantage to Vi(m) is that it is effectivley guarunteed to be installed on any Unix/Linux system you come across.
It isn't as easy as the Windows edit, but you get used to it. If you want something more newbie-friendly, then look at nano (GPL) or pico (BSD).
This may or may not be included in your distro.
Site here: http://www.nano-editor.org/
Hope that helps you.
__________________
_____
NuKeS
|
| |
10-22-2003, 11:27 AM
|
#3 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Ranger Country
Posts: 2,308
|
if you have midnight commander installed i would use mcedit. its very simple, quick and straight forward. just run "mc" from the command line. if you get a blue screen thats blank, its there and youre ready to go. just su to root, and type "mcedit /etc/samba/smb.conf" w/out the quotes.
i dont remember if thats where smb.conf is, thats off the top of my head.
SD
|
| |
10-22-2003, 11:29 AM
|
#4 (permalink)
| | Registered User
Join Date: Oct 2002 Location: Scotland, UK
Posts: 2,946
| Quote: |
not sure its the where smb.conf is, thats off the top of my head.
| Yeah, that's right.
__________________
_____
NuKeS
|
| |
10-22-2003, 11:30 AM
|
#5 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Ranger Country
Posts: 2,308
|
damn nukes , youre quick |
| |
10-22-2003, 11:35 AM
|
#6 (permalink)
| | Registered User
Join Date: Oct 2002 Location: Scotland, UK
Posts: 2,946
|
I am aren't I?
__________________
_____
NuKeS
|
| |
10-22-2003, 08:36 PM
|
#7 (permalink)
| | Registered User
Join Date: Oct 2001 Location: Melbourne, Australia
Posts: 1,193
|
I ONLY edit my config files with vi. If you're not real confident in what you're doing, make a backup of the file before editing. You can always put it back, if you screw it up. |
| |
10-22-2003, 09:19 PM
|
#8 (permalink)
| | Registered User
Join Date: Mar 2002
Posts: 135
|
I just use "nano" (a variation on pico) to edit stuff. You could also use something such as win32pad to edit files from a Windows box (the Unix file format, without line breaks, is supported).
__________________
[i]Keyboards and mice are great... for word processing.
|
| |
10-26-2003, 02:53 PM
|
#9 (permalink)
| | Registered User
Join Date: Oct 2002 Location: Scotland, UK
Posts: 2,946
| Quote: |
I ONLY edit my config files with vi.
| Yar, but I wouldn't recommend that to someone asking for an easy text editor on Linux. Undoubtedly it is cool, and it may be easy now, but how many people would assume that you use h, j, k and l to move the cursor along?
__________________
_____
NuKeS
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions  | | | | | Recent Discussions  | | | | | |