LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2004, 05:54 PM   #1
spike0
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Rep: Reputation: 0
Why is smb.conf read only?


appologies for the newbie question.

I have a windows 2k machine for the wife and am trying to share a printer connected to my Red Hat v8 machine. I am trying to edit the smb.conf to change the workgroup to 'WORKGROUP', which I hope will make attaching to the printer easier from the Win2k machine.

Unfortunately, smb.conf is read only. I have stopped samba, and checked the permissions but still had no luck. I tried to force the write in vi, but get error e212: Can't open file for writing. Any ideas?
 
Old 08-20-2004, 05:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ!

Editing it as root?


Cheers,
Tink
 
Old 08-20-2004, 06:22 PM   #3
spike0
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
tinkster,

Thank you. You've hit the nail on the head. When I reopened the file with vi, it told me there was a duplicate swap file, smb.conf.swp. Is it safe to assume I can ignore this? vi suggested that I delete the swap file, but I'm not sure how to get at it.

As a short term fix, I rebooted the computer.
 
Old 08-20-2004, 06:51 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
By default, vi creates a swp file when you open up a file for editing. If you close vi properly (:q or :wq or :q!), the swp will be removed. If you just close the term window without first closing vi, the swp will not be removed.
It's generally safe to delete the old swp file, since it's just a temp file.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smb.conf assistance on read/write server jer2eydevil88 Linux - Newbie 9 09-28-2005 07:26 PM
smb.conf nkeever Linux - Newbie 1 05-03-2005 09:35 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration