Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What I'm Trying To Do

Add an external jar to my Eclipse project. Eclipse is on Windows 7 and the jar in on an Ubuntu server running Samba.

The Problem

Eclipse says I don't have permission to read the file. If I open Properties on the jar file in Windows, it says I don't have permission to change security. It does this even if I'm the Administrator.

Details

Windows 7 SP1, Ubuntu Server 13.04

smb.conf

[global]
    workgroup = WORKGROUP
    server string = %h server (Samba, Ubuntu)
    dns proxy = no
    interfaces = 192.168.1.15/8 wlan0
    log file = /var/log/samba/log.%m
    max log size = 1000
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
    security = user
    guest account = smbguest
    guest ok = yes
    encrypt passwords = true
    passdb backend = tdbsam
    obey pam restrictions = yes
    unix password sync = yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    pam password change = yes
    map to guest = bad user
    socket options = TCP_NODELAY
    usershare allow guests = yes
[homes]
    comment = Home Directories
[tomcat7_examples]
    comment = Tomcat7 Examples Folder
    read only = no
    path = /usr/share/tomcat7-examples
[tomcat7]
    comment = Tomcat7 Shared Folder
    read only = no
    path = /usr/share/tomcat7

Most of the global settings come from the sample config file.

What I've Tried

  • Changing the owner, group, and permissions on the jar file in Ubuntu
  • Changing the security type in smb.conf
  • Adding a guest user in Ubuntu
  • Other things I've forgotten
share|improve this question
    
Did you install Samba or Eclipse as root ? –  dschinn1001 Oct 4 '13 at 11:15
    
I used sudo apt-get install samba or something like that, so yes. I also run it in a sudo. Should I create an SMB user? –  ksnortum Oct 4 '13 at 14:55
    
In case you want to apply a SMB-user with certain permissions, then yes create as sudo an SMB-user: wiki.ubuntuusers.de/Samba_Server - and this should help too: howtogeek.com/howto/ubuntu/create-a-samba-user-on-ubuntu –  dschinn1001 Oct 4 '13 at 17:03
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.