LinuxQuestions.org
Help answer threads with 0 replies.
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 08-16-2013, 04:06 PM   #1
Strax
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Samba issues


I have a computer that dual boots Ubuntu 13.04 and Windows 7 Professional. There are a number of files on an ntfs drive that I am trying to share from Ubuntu to a laptop (Windows 7) with samba. Ideally the share will not require a password.

The issue I am having is that I am prompted for a username and password from the laptop whenever I try to connect to the share. \\ipaddress and \\hostname have the same result. I have tried every conceivable password to no avail. The permissions on the drive I am trying to share are drwxr-xr-x with all the directories and files contained within it the same.

The relevant bits from my smb.conf are below. This is just the latest version; I have tried a myriad of other options I have found by browsing various forums, (guest = ok, guest only = yes etc) but nothing has worked.

Code:
[Global]
user=share 
owner only = false
map to guest = bad user
guest account = nobody
security = share

[sharedstuff]
  comment = sharedstuff
  path = /media/Strax/Storage/sharedstuff
  available = yes
  browsable = yes
  public = yes
  writeable = no
I have looked in the various samba log files and there are lots of Can't become connected user! messages, but I have no idea what this means.

The ironic thing is that I can boot into Windows 7 and achieve exactly what I want to in about 5 seconds with no issues at all. I installed Ubuntu because I had heard good things about linux and I was keen to give it a try; in every other respect I am really liking it and would like to continue using it.
 
Old 08-17-2013, 01:29 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
You need to drop "security = share". You're basically telling Samba to behave like Windows for Workgroups 3.1. That mode was deprecated years ago, and modern Microsoft OSes can't handle it. Support for "security = share" has actually been removed from the most recent versions of Samba (as has "security = server").

Switch to "security = user". If you want password-free access, keep the "map to guest = bad user" setting and give the specified guest account ("nobody") read (or read/write) access on the shared directory.
 
Old 08-17-2013, 06:41 PM   #3
Strax
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
give the specified guest account ("nobody") read (or read/write) access on the shared directory.
Is this something I have to do in the smb.conf file?
 
Old 08-17-2013, 08:46 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
Quote:
Originally Posted by Strax View Post
Is this something I have to do in the smb.conf file?
No, you'll have to change the permissions on the directory being shared.

In smb.conf you can set a read-only flag on an individual share, but the relevant user account(s) must still have the proper permissions on the underlying file system objects.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 issues mrkow Ubuntu 2 04-02-2008 11:48 AM
Samba issues metallica1973 Linux - Software 0 08-04-2006 09:34 PM
Samba issues trebek Linux - Networking 3 04-28-2005 03:10 PM
samba issues feldux Linux - Networking 1 08-12-2004 11:06 AM
Samba Issues TheTrexx Linux - Networking 4 12-16-2002 12:30 PM

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

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