Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.