LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-07-2010, 08:53 PM   #1
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Rep: Reputation: 15
Cant access samba shares in Ubuntu 10.04 from Windows (XP or Vista)


So I setup the newest Ubuntu on my old desktop on a 30g HD and have 2 200G HDs with a ntfs file system on those two. I got SSH and FTP configured, then went on to setup Samba.

I have it (seemingly) set up well. /dev/sb1 gets mounted on /data1 /dev/sc1 gets mounted on /data2

I want anyone connected to my router to be able to see this machine and be able to read and write to both shares.

I configured WINS on my laptop to point to the linux box. and i've seen the pc in question (TECH-PC) in "My Network Places" on both of our laptops.

Long story short, I try to connect to my network share and it says i don't have permission and i need to contact my network admin. This computer is the only one with Linux installed, the rest are windows-OS.

Let me know if you need more info, pretty stumped here, have searched, read, scrapped my install and started from scratch, maybe i need to sleep on it

Last edited by jabird; 07-07-2010 at 08:55 PM.
 
Old 07-07-2010, 09:00 PM   #2
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
A.) Is the samba server/daemon running?

B.) Post your /etc/smb.conf file.
 
Old 07-10-2010, 01:15 PM   #3
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
a.) Yes the service is running and I can see the hard drives are properly mounted in the local machine.


b.)
Code:
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
        workgroup = workgroup
        server string = %h server (Samba, Ubuntu)
        wins support = yes
        dns proxy = no

#### Debugging/Accounting ####
        log file = /var/log/samba/log.%m
        max log size = 1000
;       syslog only = no
        syslog = 0
        panic action = /usr/share/samba/panic-action %d

####### Authentication #######
        security = user
        encrypt passwords = no
;       passdb backend = tdbsam
        obey pam restrictions = yes
        unix password sync = yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        pam password change = yes
        map to guest = bad user
        usershare allow guests = yes
        username map = /etc/samba/smbusers
;       guest ok = no
;       guest account = nobody

######  Networking ######
        interfaces = 127.0.0.0/8 eth0
#======================= Share Definitions =======================

;[homes]
;   comment = Home Directories
;   browseable = no
;   read only = no
;   create mask = 0775
;   directory mask = 0775

[Data1]
        path = /data1/
        browseable = yes
        writeable = yes
        guest ok = yes
        create mask = 0755
        directory mask = 0755
[Data2]
        path = /data2/
        browseable = yes
        writeable = yes
        guest ok = yes
        create mask = 0755
        directory mask = 0755
Sorry it took me so long to reply, had a larger issue spring up.

Last edited by jabird; 07-10-2010 at 01:16 PM.
 
Old 07-10-2010, 06:37 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
I don't have windows machines to play with, but off the top of my head I would say check the permissions of the directories being shared. If you want them wide open for all then
Code:
chmod 777 /path/to/share/directory.
Playing with some testing shares, allows my test account full read/write access to a test share, with what amounts to a guest account on the samba server. Your smb.conf is much more complicated than mine so I can't really comment on a lot of your entries.
 
Old 07-10-2010, 08:17 PM   #5
jabird
Member
 
Registered: Sep 2004
Location: Carbondale, IL
Distribution: Debian and Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 15
Ok, I set both directories to 777. I will by no means proclaim myself a guru, I just opened up the master config file while i wrote my smb.conf and read the comments and tried to apply what it sounded like i needed (mostly erasing comments and printer share options and trying to use a little common sense where applicable). If you have any suggestions on how to slimline it some, I'm all ears. Like I said I have no critical need for security here, I just want to be able to access my files across the network

Btw, when I try to access the share in Windoze via \\Computer-name\data1 or \data2 I get the error: "The account is not authorized to log in from this station"

Last edited by jabird; 07-10-2010 at 08:22 PM. Reason: grammar
 
Old 07-10-2010, 09:08 PM   #6
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
That is the smb.conf file from my samba server. Security is minimal and handled by local mount point permissions and the server's directory permissions. You'll notice that all the shares except the printer are essentially the same, but only the one labled kids will allow read/write form an unauthenticated user with no account on the server. I use Slackware, which doesn't use PAM, so I can't speak as to whether that will have an effect or not, further, as I've stated I can't test on windows machines since I simply don't use windows.
Quote:
#======================= Global Settings =====================================
[global]
workgroup = workgroup
server string = Samba Server
hosts allow = 192.168.1.
load printers = yes
printcap name = /etc/printcap
passdb backend = tdbsam
security = user



#============================ Share Definitions ==============================
;[homes]
; comment = Home Directories
; browseable = no
; writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
# Set public = yes to allow user 'guest account' to print
public = yes
guest ok = yes
writable = yes
printable = yes
browseable = yes
create mode = 0700

[mp3]
path = /mnt/mp3
guest ok = yes
writable = yes
browseable = yes

[current_mirror]
path = /home/ftp/pub/Linux/Slackware
guest ok = yes
writable = yes
browseable = yes

[home_dtest]
path = /home/dtest
guest ok = yes
writable = yes
browseable = yes
[kids]
path = /home/kids
guest ok = yes
writable = yes
browseable = yes

Last edited by damgar; 07-10-2010 at 09:09 PM.
 
  


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
ubuntu 9.10 to vista file shares - samba - HELP! Joshwaaa Linux - Networking 3 03-02-2010 09:00 AM
ubuntu 9.10 to vista file shares - samba - HELP! Joshwaaa Linux - Software 2 02-28-2010 09:50 AM
Ubuntu 8.04 in windows network cannot get write access for all samba shares cliffsur Linux - Newbie 6 09-18-2008 12:29 PM
Can't access shares in ubuntu from vista kjdad Linux - Newbie 4 02-18-2008 08:24 PM


All times are GMT -5. The time now is 04:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration