Cant access samba shares in Ubuntu 10.04 from Windows (XP or Vista)
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Cant access samba shares in Ubuntu 10.04 from Windows (XP or Vista)
So I setup the newest Ubuntu on my old desktop on a 30g HD and have 2 200G HDs with a ntfs file system on those two. I got SSH and FTP configured, then went on to setup Samba.
I have it (seemingly) set up well. /dev/sb1 gets mounted on /data1 /dev/sc1 gets mounted on /data2
I want anyone connected to my router to be able to see this machine and be able to read and write to both shares.
I configured WINS on my laptop to point to the linux box. and i've seen the pc in question (TECH-PC) in "My Network Places" on both of our laptops.
Long story short, I try to connect to my network share and it says i don't have permission and i need to contact my network admin. This computer is the only one with Linux installed, the rest are windows-OS.
Let me know if you need more info, pretty stumped here, have searched, read, scrapped my install and started from scratch, maybe i need to sleep on it
I don't have windows machines to play with, but off the top of my head I would say check the permissions of the directories being shared. If you want them wide open for all then
Code:
chmod 777 /path/to/share/directory.
Playing with some testing shares, allows my test account full read/write access to a test share, with what amounts to a guest account on the samba server. Your smb.conf is much more complicated than mine so I can't really comment on a lot of your entries.
Ok, I set both directories to 777. I will by no means proclaim myself a guru, I just opened up the master config file while i wrote my smb.conf and read the comments and tried to apply what it sounded like i needed (mostly erasing comments and printer share options and trying to use a little common sense where applicable). If you have any suggestions on how to slimline it some, I'm all ears. Like I said I have no critical need for security here, I just want to be able to access my files across the network
Btw, when I try to access the share in Windoze via \\Computer-name\data1 or \data2 I get the error: "The account is not authorized to log in from this station"
Last edited by jabird; 07-10-2010 at 08:22 PM.
Reason: grammar
That is the smb.conf file from my samba server. Security is minimal and handled by local mount point permissions and the server's directory permissions. You'll notice that all the shares except the printer are essentially the same, but only the one labled kids will allow read/write form an unauthenticated user with no account on the server. I use Slackware, which doesn't use PAM, so I can't speak as to whether that will have an effect or not, further, as I've stated I can't test on windows machines since I simply don't use windows.
Quote:
#======================= Global Settings =====================================
[global]
workgroup = workgroup
server string = Samba Server
hosts allow = 192.168.1.
load printers = yes
printcap name = /etc/printcap
passdb backend = tdbsam
security = user
#============================ Share Definitions ==============================
;[homes]
; comment = Home Directories
; browseable = no
; writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
# Set public = yes to allow user 'guest account' to print
public = yes
guest ok = yes
writable = yes
printable = yes
browseable = yes
create mode = 0700
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.