LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2004, 01:24 AM   #1
lacitpo
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
Accessing samba shares from a windows machine


I'm having some issues. I'm trying to access my linux machine's samba shares from one of my Windows machine. I have read though a few different guides that goo through setting up samba and having it let a windows machine access it.

My network is set up as follows. I have cable, coming in through a router that my computers are hooked up on. My router does the DHCP. On my windows machine I can see my linux computer, but when I try to access it I am told I do not have permissions to access it.

From my linux box, I can only see the linux box itself in the samba shares, but none of my other windows machines. I can ping between all of my computers.

Any suggestions. I'm totally lost and have been working on this for 2 days now.
 
Old 12-13-2004, 03:49 AM   #2
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Could you post your smb.conf?

If Windows boxes can see your Samba shares, it could be permissions or make sure that security is set to share and not user if you just need simple file and print sharing. But if you prefer a user security, you have to create users in /etc/passwd and then give them all passwords.

If you want only file sharing, here is my example:

------------------------------ Share Definitions ------------------------

[ourshare]
comment = Linux share on Samba
path = /usr/local/samba/ourshare
public = yes
read only = no
create mode = 777
directory mode = 777

# mkdir -m 1777 -p /usr/local/samba/ourshare

If you prefer share that will ask your Windows users for password everytime they will connect:

[ourshare]
comment = Linux share on Samba
path = /usr/local/samba/ourshare
public = no
read only = no
create mode = 770
directory mode = 770

# mkdir -m 770 -p /usr/local/samba/ourshare
# useradd username
# passwd username

Repeat with other users.

In your /etc/passwd there should be a system default user "user" with a GID of maybe 100 if I'm not mistaken coz I'm out of my OpenBSD box and I can't check it now and in Linux there should always be.

# cat /etc/passwd |grep user

It should post a "user" user if there is in that file.

# chown root.user /usr/local/samba/ourshare

Or create a different group:

# groupadd yourgroup
# chown root.yourgroup /usr/local/samba/ourshare
 
Old 12-13-2004, 06:47 AM   #3
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Quote:
If you prefer share that will ask your Windows users for password everytime they will connect:

[ourshare]
comment = Linux share on Samba
path = /usr/local/samba/ourshare
public = no
read only = no
create mode = 770
directory mode = 770
In this case, security = user should be in your [global] configurations.
 
  


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
Difficulty accessing SAMBA shares Tsarok Slackware 1 08-30-2005 09:16 PM
windows locks up while accessing samba shares Ogi Linux - Software 0 09-30-2004 05:28 AM
Problem accessing windows shares using samba Tinku Linux - Software 6 08-05-2004 07:47 PM
Accessing Samba Shares The_Q DamnSmallLinux 2 02-05-2004 04:36 AM
accessing samba shares is slow! kudos Linux - Software 2 11-26-2003 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 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