Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Ubuntu 10.04 web server. I want to connect to it with my OSX 10.6 machine and Finder.

I have installed openSSH and Samba on the Ubuntu machine.

In my smb.conf I have a Share Definition:

[www]
   comment = Development Computer WWW
   path = /var/www
   writeable = yes
   browseable = yes
   allow hosts = 192.168.1.

I can connect to the machine through Finder using a non-root user. When I attempt to add files thought Finder I get an "Insufficient Permissions" error.

Please help. I am not sure if the issue is in the Samba configuration or OSX 10.6

Thank you

EDIT (More Information): I am logging into the Ubuntu machine with a username and password. Currently the var/www is owned by root. I am logging into the Ubuntu machine with a non-root user.

share|improve this question
1  
Are you connecting as "Guest" or using a user/password on the Mac side? If the later, does that user have write permissions to /var/www? –  Jeff Leyser Jun 9 '10 at 20:00
    
@Jeff Leyser username/password -- no, currently var/www is owned by root and I am logging in with a non-root user. Should I configure SSH to allow a root login? –  Christopher Altman Jun 9 '10 at 20:03
1  
The problem is Samba, not SSH. They use very different auth mechanisms, so how you login via SSH doesn't really matter. When you are in Finder, how are you connecting to the 'www' share? –  Jeff Leyser Jun 9 '10 at 20:21
1  
What steps are you following to connect in Finder? This matters, a lot! :) –  Jeff Leyser Jun 9 '10 at 20:40
1  
No, I use 10.6 & Samba no problem. You have a permission problem. Try the suggestions below. –  Jeff Leyser Jun 9 '10 at 21:32
show 3 more comments

1 Answer 1

up vote 1 down vote accepted

Samba uses its own authentication model. You need to do one of the following:

  1. Include guest ok = yes when defining the share in the smb.conf file, and then click use "Connect as Guest" when connecting from finder
  2. Use smbpasswd -a on the Ubuntu system to create a Samba user, and use "Connect as Registered User" from Finder.

In either case, you'll need to change the ownership and/or permission of the directories you want to manipulate under /var/www to allow either "guest" or the user you create to write to them.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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