»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2003, 10:32 AM   #1 (permalink)
Registered User
 
blubomber's Avatar
 
Join Date: Oct 2001
Location: Reno, NV
Posts: 776
blubomber is on a distinguished road
Send a message via Yahoo to blubomber
Kids 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.

blubomber is offline   Reply With Quote
Old 10-22-2003, 10:44 AM   #2 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
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
nukes is offline   Reply With Quote
Old 10-22-2003, 11:27 AM   #3 (permalink)
Registered User
 
S.D.Willie's Avatar
 
Join Date: Oct 2001
Location: Ranger Country
Posts: 2,308
S.D.Willie is on a distinguished road
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
S.D.Willie is offline   Reply With Quote
Old 10-22-2003, 11:29 AM   #4 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
Quote:
not sure its the where smb.conf is, thats off the top of my head.
Yeah, that's right.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 10-22-2003, 11:30 AM   #5 (permalink)
Registered User
 
S.D.Willie's Avatar
 
Join Date: Oct 2001
Location: Ranger Country
Posts: 2,308
S.D.Willie is on a distinguished road
damn nukes , youre quick
S.D.Willie is offline   Reply With Quote
Old 10-22-2003, 11:35 AM   #6 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
I am aren't I?
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 10-22-2003, 08:36 PM   #7 (permalink)
Registered User
 
linux_guru's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 1,193
linux_guru is on a distinguished road
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.
linux_guru is offline   Reply With Quote
Old 10-22-2003, 09:19 PM   #8 (permalink)
Registered User
 
Join Date: Mar 2002
Posts: 135
[A3D]Hatswitch is on a distinguished road
Send a message via AIM to [A3D]Hatswitch
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.
[A3D]Hatswitch is offline   Reply With Quote
Old 10-26-2003, 02:53 PM   #9 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
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
nukes is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:11 AM.