Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu on my computer. On my desktop, I see a folder that says 'web on'. When I try to overwrite a file, I get a good warning 'The file already exists in smb://john@ Replacing it will overwrite its content.'

I want to use the vi editor via terminal to edit the file smb://john@ But when I type

vi smb://john@

then add some content and try to save, the terminal tells me I am unable to save. What's wrong with what I'm doing? And how come I can't do this?

cd smb://john@

I looked in /dev, /media and /mount, but don't see how to go to that directory

share|improve this question

closed as off topic by Zoredache, mailq, voretaq7 Jul 24 '12 at 15:46

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You can try to mount the smb location using the mount command. Using:

mount -t smbfs -o username=username,password=pwd //shared/ destination


mount -t cifs -o username=username,password=pwd //shared/ destination

(the command depends on your os version)

and then try to edit a file with vi.

And: are you sure you have write access to that folder?

share|improve this answer

If you've contacted the server with gnome, it's already mounted in your home directory.

# vi ~/.gvfs/web\ on\

will probably work.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.