LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2007, 01:12 PM   #1
bostonantifan
Member
 
Registered: May 2006
Location: Leominster, Massachusetts
Distribution: Kubuntu 10.04
Posts: 56

Rep: Reputation: 15
Samba - can't access local host from Windows


I've just set up Samba on Fedora 6 on my laptop. I've set up a user account, and a shared directory. When I go into Network Neighborhood on my Windows 2000 machine, under "computers near me", I see a computer listed as 'HOST', with the description 'Vnet Samba Server' (The name I gave the server on the Linux machine). When I click on it, I get a list of 2 directories, the one I set up, and the home directories for peterv (the guest account), and I see a line for printers. When I double click on the ccode directory, I get the message "\\Host\ccode" is not accessible. The network name cannot be found. I'm very new to Linux and Samba, but I've searched the boards, and didn't find anything I considered similar to this problem. Can anyone help me out with this? I'd really appreciate it.
Peter V.
 
Old 03-04-2007, 01:19 AM   #2
TylerD75
Member
 
Registered: Aug 2004
Location: Norway
Distribution: Gentoo
Posts: 96

Rep: Reputation: 18
Hmm... What user owns the ccode folder (on the samba server)?
Let's say the owner is "coder", and he is part of the group "users".

Then go to share definition in /etc/samba/smb.conf
Write it like the following:
Code:
[ccode]
  comment = C-Code
  path = /home/ccode ;or where ever it's located
  force user = coder ;Or whatever user owns/has write access to the folder
  force group = users ;or some other group with access to the folder
  public = yes
  writable = yes
  printable = no
  create mask = 0765
The above will make the folder public, which means anyone on your lan can access it!!! (NOT VERY SAFE, unless you trust your LAN)
It will also force the user "coder" and group "users" to own all new files created over the network.

I noticed that you accessed the shares as guest (which means no login), so I'm assuming guest access from your LAN is no problem.

And don't forget to restart samba (/etc/init.d/samba restart).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA - VFAT local mount for all user write access... dolvmin Linux - Software 13 12-21-2006 03:50 PM
can't access virtual host from local machine curos Linux - Networking 3 02-06-2006 09:18 PM
how 2 access a ext3 fs from windows on a local hard disk mukeshj Linux - General 2 07-09-2005 02:08 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
X Windows server security set back to host access on Slackware 9.1 Jerre Cope Slackware 0 10-14-2003 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration