LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-02-2005, 11:42 PM   #1
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Rep: Reputation: 15
samba can't get share to work


hi all

ok, so we have a share setup on our redhat9 devserver
that is used as our web development box

i wanted to create a share for this network folder that we currently have on a windows machine
but we need to move it because that computer is about to blow

i created a user and group (eg. winshare) to login into, and a directory for the share
and added an entry into this file /etc/samba/smb.conf

exactly the same as the other one, except path and users is different

but when i try to connect to this share via windows
it just keeps showing the login prompt
i'm sure the password is correct, as i can login directly to the linux box with the password and username

can anyone help me?

thanks
dave
 
Old 02-03-2005, 03:12 AM   #2
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
What did you use to set up the user? And did you set the permissions on the directory correctly? Can we see your smb.conf?
 
Old 02-03-2005, 07:53 AM   #3
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
I am not sure but I think you have not added the user to the smb user file. It is totally different than just adding a user on the box itself. You do need to add the user to the box, but the user also needs to have a smb account. To do that, at the command prompt type "smbpasswd -a newusername" . Newusername is the user name that you want to add. It will ask you for their new password, which is typically the same password that they use to sign on their Windows box. Try that and repost.
 
Old 02-03-2005, 04:35 PM   #4
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
hi guys, thanks for the replies

Scooter, i tried what you said, but it's the same thing when i try to log in through windows
i took the password off, but that did not work either

Code:
[http]
        path = /http
        writeable = yes
        valid users = user
        oplocks = False
        level2 oplocks = False

[sharedir]
        path = /sharedir
        writeable = yes
        valid users = shareuser
        oplocks = False
        level2 oplocks = False
where http works, and sharedir does not

the directory permissions are exactly the same for both directories
 
Old 02-03-2005, 08:27 PM   #5
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
try removing shareuser with smbpasswd -x and then readding him. Use a password, casue sometimes it acts funny without one.

Also, when you go to test it from windows, access the share you are having trouble with first, before the one that works. Becasue you have different users setup for the diferent shares windows may store the first user and attempt to re-use it for the 2nd share.

G/L
 
Old 02-03-2005, 08:52 PM   #6
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
hmmm.... not sure what is wrong
i can only seem to connect to one at a time
if i disconnect both, then map one, i can't map the other one
the first one works, but the second one does not
 
Old 02-03-2005, 09:39 PM   #7
DeGaR
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora core 4, Slackware 10
Posts: 18

Rep: Reputation: 0
Hi

I have a similar problem

Windows XP on the one side fedora 3 on the other. I can browse the windows network just fine from Linux, but not the other way around, firewalls are turned off on both sides.

I have shared a directory using samba, also set up a user account the same as my windows one, and allowed samba access to it, and restarted samba afterword. I also checked the services and samba is running.

Vnc works perfectly from windows to linux, and the other way around. and i can control linux from windows using putty.

It has to be something simple, but i don't know what.

And just to answer your question, Yes i am new to this, and i don't know what i am doing, probably been in the windows world too long.
 
Old 02-03-2005, 11:52 PM   #8
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
mate i'm sure you are new to this, as am i
but that's no reason to hijack my thread
 
Old 02-04-2005, 08:42 AM   #9
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
dtra, post your smb config file and lets have a look at that.
 
Old 02-04-2005, 10:29 AM   #10
Cagao
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Rep: Reputation: 0
dtra, I have the same problem, wanting to be able to access many different users home directories on Linux from XP at the same time, I don't think it's possible at all.

Would it be possible if the security options were removed? or changed from User? There's only me on my network, but i like to keep all my work projects under seperate users on my Linux box.
 
Old 02-04-2005, 10:51 AM   #11
Cagao
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Rep: Reputation: 0
Right, here's a solution (well a work-around anyway), it works for me after 2 days of trying! Mandrake 10.1 (192.168.1.1) and XP client (192.168.1.3).

smb.conf...

[global]
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
ldap ssl = no
printer admin = @adm
hosts allow = 192.168.1.2, 192.168.1.3

[share1]
comment = Rob Directory
path = /home/rob
valid users = rob
username = rob
writable = Yes
read only = No

[share2]
comment = MAHunter Directory
path = /home/mahunter
valid users = mahunter
username = mahunter
writable = Yes
read only = No

[share3]
comment = UJJ Directory
path = /home/ujj
valid users = ujj
username = ujj
writable = Yes
read only = No


Now in XP, find your 'hosts' file located in 'C:\WINDOWS\SYSTEM32\DRIVERS\etc'

add entries for your server but with many different aliases, mine is...

127.0.0.1 localhost
192.168.1.1 server1
192.168.1.1 server2
192.168.1.1 server3

Now map a drive to \\server1\share1 and use one username/password.

Map another drive to \\server2\share2 (click the 'use different username' link when mapping the drive, to enter the other user credentials).

Everytime you log into XP, and try to access each mapped drive you will be asked for the corresponding password, but only once until you exit XP again, so you've got access to them while you work, and can switch around without having to enter the username/password each time.

As I say, it's just a work-around suggested on a different thread, but can't find that one now, or who suggested it.

Hope it works for ya.

Rob
 
Old 02-04-2005, 06:34 PM   #12
DeGaR
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora core 4, Slackware 10
Posts: 18

Rep: Reputation: 0
Sorry dude

Wasn't trying to steal your thread, but i did get my problem solved...was a simple thing, as i suspected.
 
Old 02-07-2005, 07:09 PM   #13
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
awesome
thanks cagao, don't really care if it is a workaround
as long as it works, that's good enough
degar, hope you learnt your lesson, but all is good when problems are solved
 
Old 02-10-2005, 01:11 PM   #14
csr
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Question

I have samba and I can share Linux files to Window XP, but when I want exporer window xp shared files with konqueror in suse 9.0, I get a error: "Unable to find any workgroups in your local network". I have revised configuration and I don't see problems. The workgroups is correct, "INICIOMS".

Help.
Thanks.
 
Old 02-10-2005, 03:54 PM   #15
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Smile

I am not familiar with SUSE so I can't speak on thast one, but if you have all of your workgroups and subnets correct, the SUSE box should be able to see all the other linux boxes.
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
share for groups on samba 3 - ADS doesn't work ceixxx Linux - Software 0 11-06-2004 05:13 PM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM

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

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