LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-15-2006, 10:26 PM   #1
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
Files sharing with Windows boxes


Hi all,

I have some files which need to be shared with other Windows boxes. I choose from menu System > Admin > Shared Folder, install SAMBA to share files. After that, I add my share folder into share list (this share folder was set access permission to 777). However, when WIndows boxes try to access my Ubuntu, they get the window ask for username and password and though i entered my ubuntu's acc, they still not be invalid.

How can i fix this problem?

Thanks and best regards.
 
Old 02-16-2006, 02:58 PM   #2
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
Simply add this to your /etc/samba/smb.conf (if it's not there, try searching for it with
find | grep -e "smb.conf"

There should already be several entries like this, but here is a model one for unauthorised sharing. (this is my media directory)
The stuff in [] is totally up to you, it's the name under which windows computers are going to see your directory.
Code:
[MEDIA]
path = /mnt/media/
guest ok = yes
case sensitive = no
msdfs proxy = no
guest only = yes
wide links = no
 
Old 02-17-2006, 10:39 AM   #3
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
Thank Atom.
i tried to edit smb.conf file manually but it still asked username and password to view shared resources on my Ubuntu. Finally, i had to add user to samba's database via command smbpasswd -a 'my valid ubuntu acc'. After i entered this command, i can access to shared resources now.

Is there another way to enable shared resources without any authentication ????

Thx & rdgs.
 
Old 02-17-2006, 10:42 AM   #4
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
Well, I wouldn't know, but maybe there's something in your samba config you haven't considered.

Here's mine, it may just help (and note all resources are availible read-only without authentication)
Code:
[global]
workgroup = MSHOME
server string = Gagijev comp
message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
hosts allow = 192.168.1. 127.
guest account = samba_user_schleif
security = share





[MEDIA]
path = /mnt/media/
guest ok = yes
case sensitive = no
msdfs proxy = no
guest only = yes
wide links = no

[TORRENTS]
path = /home/atom/torrents
guest ok = yes
case sensitive = no
msdfs proxy = no
guest only = yes

[media2]
path = /mnt/sda7/
guest ok = yes
case sensitive = no
msdfs proxy = no

[media3 - movies]
path = /mnt/sdb3/
guest ok = yes

[ATLANTIS ]
path = /mnt/sdb3/DVD5/Atlantis - The Lost Empire/
guest ok = yes

[TREASURE PLANET]
path = /mnt/sdb3/DVD5/Treasure Planet/
guest ok = yes

[INSTRUKCIJE]
path = /home/atom/instrukcije/
guest ok = yes
read only = no
case sensitive = no
msdfs proxy = no
 
Old 02-17-2006, 10:43 AM   #5
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
When I was reviewing my config, I found your problem: [global] security = share.

It should be fixed now.
 
  


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
sharing a printer for windows boxes neronas Linux - Networking 1 01-18-2006 10:01 AM
Sharing files between a Slackware box and several Windows boxes bakarihibiki Linux - Networking 1 01-17-2006 01:51 PM
Fedora Core and Slack boxes sharing files!! linuxhippy Slackware 1 05-02-2005 06:22 PM
sharing network files between Linux boxes linuxhippy Slackware 23 04-22-2005 07:03 PM
Backing up files on Windows boxes to Linux thosm Linux - Software 1 04-08-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:30 PM.

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