Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2012, 12:55 PM
skilledcomputing skilledcomputing is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Vim
Cannot edit smb.conf because VIM will not work ans stated only read file. I am logged in as the root.
Reply With Quote
  #2  
Old 06-28-2012, 02:35 AM
kmoore134's Avatar
kmoore134 kmoore134 is offline
Administrator
 
Join Date: May 2005
Location: Knoxville, TN
Posts: 2,430
Thanks: 0
Thanked 104 Times in 86 Posts
Default Vim
Interesting, can you past the output of "ls -al /usr/local/etc/smb.conf"?

How about if you do this:

% gksu gvim /usr/local/etc/smb.conf
__________________
----
Kris Moore
PC-BSD Founder
Reply With Quote
  #3  
Old 06-28-2012, 11:52 AM
fluca1978 fluca1978 is offline
Senior Member
 
Join Date: Mar 2011
Posts: 353
Thanks: 2
Thanked 18 Times in 14 Posts
Default
I can confirm this on the latest june snapshot: the file /usr/local/etc/smb.conf has 444 as permission and therefore is not editable even by root. In the meantime the problem can be fixed doing a:
Code:
chmod 644 /usr/local/etc/smb.conf
and the following command can help finding other files with the same problem:

Code:
find /usr/local/etc -type f -perm -u=w
Reply With Quote
  #4  
Old 06-28-2012, 01:18 PM
kmoore134's Avatar
kmoore134 kmoore134 is offline
Administrator
 
Join Date: May 2005
Location: Knoxville, TN
Posts: 2,430
Thanks: 0
Thanked 104 Times in 86 Posts
Default Vim
Odd, that must be how the port installs the conf file, since we don't
include it with any of our stuff. I've manually changed it to 644 though
now
__________________
----
Kris Moore
PC-BSD Founder
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.