Page 55 of 106 FirstFirst ... 545535455565765105 ... LastLast
Results 541 to 550 of 1059

Thread: HOWTO: Setup Samba peer-to-peer with Windows

  1. #541
    Join Date
    Jan 2008
    Beans
    10

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I did this with my eeepc running xubuntu and my vista desktop and I haven't had any success. What I really need to achieve is to be able to access my files stored on my vista computer. I see the work group and can see the folders on my vist pc but I keep getting an error message saying that the folder can't be mounted. Anybod have suggestins?

  2. #542
    Join Date
    Sep 2006
    Location
    Maryland, USA
    Beans
    260
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Wow - I've been having such trouble getting SAMBA to run correctly. But here's a few things that I was able to finally figure out.

    I installed a brand new Gutsy LAMP Server and added on Samba - but kept on trying to run smbclient on the server. I would try to run

    Code:
     smbclient -L Servername -U Username
    and would get back

    Code:
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.26a]
    tree connect failed: NT_STATUS_LOGON_FAILURE
    After hours of Google searches, came across Grokking Code at http://grokkingcode.wordpress.com/20...grading-samba/ and found if I deleted out the cache - things suddenly worked. I can now run smbclient from any Linux machine in my network and look at my Samba shares.

    Next is to figure out how to get the Places to find the server - I'll update this post.
    Impari Systems, Inc
    http://www.imparisystems.com

  3. #543
    Join Date
    Sep 2007
    Beans
    33

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    i tried to install Samba and couldn't get it working out of the box. i then tried the configuration file from this HOWTO and that didn't work either. i still haven't gotten it working, but after researching a bit on SAMBA, there are some configuration considerations in the provided config that i feel need questioning.

    first, the netbios name,server string,and workgroup options MUST be set in order for any Windows OS to see the share. i don't think that's stated in the original post.

    second, why did you change the default passdb backend to tdbsam? you use smbpasswd to add and enable those user accounts but does that actually change the tdbsam users or just the smbpasswd users?

    the manpage for SAMBA3 explicitly states not to use wins support = yes unless you are working with multiple subnets. does this actually do anything useful when turned on?

  4. #544
    Join Date
    Jan 2008
    Beans
    11

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Update:
    I can access files from my Windows computer on my Linux system, but I cannot access Linux files from my Windows PC.

    It asks me for my user name and password and I enter the info that I have confirmed is both on my Ubuntu desktop and my Vista laptop.

    The information is never accepted, even though I am using the same login info on my Linux system to access Windows files.

    I would appreciate any help!

    Thanks,
    Josh

    =============

    I am running a desktop on Ubuntu and a laptop on Vista Home Premium.

    I have followed this guide and I can see both computers in the network on each computer.

    But I cannot access files on the other computer.

    I have added users to both the Linux and Vista systems with identical information.

    I am (going to try) to attach a screen shot of my network folder from Linux... Can someone please explain what the icons mean (something looks wrong) and what I can do to fix this?

    Thanks,
    Josh
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	network.png 
Views:	42 
Size:	162.9 KB 
ID:	58834  
    Last edited by nooozeguy; February 6th, 2008 at 03:15 AM. Reason: Still having problems...

  5. #545
    Join Date
    Sep 2007
    Beans
    33

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    i got my issues fixed. if this config file doesn't work for you, try checking your router settings to make sure your DNS settings are correct. i changed my router IP and neglected to change the DNS entry to point to the gateway for DNS

    in addition, wins support DOES NOT need to be on.

  6. #546
    Join Date
    Apr 2006
    Location
    Italy
    Beans
    41

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Maybe you can help me I have 3 Ubuntu pc setup as per your guide an 1 windows pc that work perfectly. I recently added a server with Ubuntu gutsy 64bit on it and set it up following this guide to the letter.
    I can browse the network and I can see the shares on it but if I use the force user parameters on them I get a user id and password prompt and then I get the following error

    The folder contents could not be displayed.
    Sorry, couldn't display all the contents of "common".
    error message

    it seems like a user permission problem but the user and password are correct the folders are chmodded to 777. On top of that if I share a file without the force user I can access it
    any ideas? following is my smb.conf


    [global]
    name resolve order = hosts wins bcast
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    announce version = 5.0
    username map = /etc/samba/smbusers
    null passwords = true
    public = yes
    passdb backend = tdbsam
    wins support = true
    netbios name = Lserver
    writeable = yes
    server string = Fileserver
    printing = CUPS
    path = /home/sandman
    workgroup = home
    syslog only = yes
    os level = 65
    printcap name = CUPS
    syslog = 1
    security = user
    ; General server settings





    ; NOTE: If you need access to the user home directories uncomment the
    ; lines below and adjust the settings to your hearts content.
    ;[homes]
    ; writable = yes
    ; valid users = %S
    ; veto files = /*.{*}/.*/mail/bin/
    ; create mode = 0600
    ; directory mode = 0755

    ; NOTE: Only needed if you run samba as a primary domain controller.
    ; Not needed as this config doesn't cover that matter.
    ;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

    ; NOTE: Again - only needed if you're running a primary domain controller.
    ;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

    ; NOTE: Inside this place you may build a printer driver repository for
    ; Windows - I'll cover this topic in another HOWTO.
    [print$]
    path = /var/lib/samba/printers
    browseable = yes
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

    [printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = no

    ; Uncomment if you need to share your CD-/DVD-ROM Drive
    ;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

    [common]
    path = /home/sandman/common
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = sandman
    force group = sandman

    [share]
    path = /home/sandman/share
    read only=no

    share is accessible common is not

  7. #547
    Join Date
    Sep 2007
    Beans
    33

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    it seems like a user permission problem but the user and password are correct the folders are chmodded to 777. On top of that if I share a file without the force user I can access it
    Code:
    [common]
    path = /home/sandman/common
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = sandman
    force group = sandman
    force user is an option that actually forces all permissions to be bitwise AND'd with the actual permissions. this basically means that regardless of what your internal settings are, all directories and files created through samba (remotely) will be created as the user sandman in the group sandman, as you have masked the directory and file bits with those two settings (create mask and directory mask). set those two settings to whatever you want every file made on your share to be (as far as permissions). the catch is that 'sandman' must have at least as many permissions as you specify for these two settings. in other words, if directory mask = 0755 but sandman only has 0644 permissions on that share, you will not be able to execute files on the share regardless of the mask.

    the fact that omitting 'force user' settings fixes your problem means that it IS a permissions problem most likely. also you do not need to turn on wins server. they actually tell you to leave it off unless you absolutely need it in the smb.conf man page. i suggest reading the smb.conf man page in it's entirety.

  8. #548
    Join Date
    Feb 2007
    Location
    Sacramento, CA
    Beans
    10
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    I set up samba on my linux desktop so that I could access some files on my windows laptop. I ran through the howto and at first I could not see the linux box at all but after some time popped in the workgroup. If I try to access it however I get the following error message:

    "\\Linuxbox is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

    The network path was not found."

    The windows username and password matches the linux username.

    Both computers are connected to the router by wireless only, if that makes any difference.

    Also here is my smb.conf
    Code:
    [global]
        ; General server settings
    	netbios name = linuxbox
    	
    	workgroup = jbk
    	announce version = 5.0
    	socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    	interfaces = lo, ath0
    	bind interfaces only = true
    
    	passdb backend = tdbsam
    	security = user
    	null passwords = true
    	username map = /etc/samba/smbusers
    	name resolve order = hosts wins bcast
    
    	wins support = yes
    
    	printing = CUPS
    	printcap name = CUPS
    
    ;	syslog = 1
    	syslog only = yes
    ;	encrypt passwords = yes
    ;	guest ok = no
    ;	guest account = nobody
    
    ; NOTE: If you need access to the user home directories uncomment the
    ; lines below and adjust the settings to your hearts content.
    ;[homes]
        ;valid users = %S
        ;create mode = 0600
        ;directory mode = 0755
        ;browseable = no
        ;read only = no
        ;veto files = /*.{*}/.*/mail/bin/
    
    ; NOTE: Only needed if you run samba as a primary domain controller.
    ; Not needed as this config doesn't cover that matter.
    ;[netlogon]
        ;path = /var/lib/samba/netlogon
        ;admin users = Administrator
        ;valid users = %U
        ;read only = no
    
    ; NOTE: Again - only needed if you're running a primary domain controller.
    ;[Profiles]
        ;path = /var/lib/samba/profiles
        ;valid users = %U
        ;create mode = 0600
        ;directory mode = 0700
        ;writeable = yes
        ;browseable = no
    
    ; NOTE: Inside this place you may build a printer driver repository for
    ; Windows - I'll cover this topic in another HOWTO.
    [print$]
    	path = /var/lib/samba/printers
    ;	browseable = yes
    	guest ok = yes
    ;	read only = yes
    	write list = root
    	create mask = 0664
    	directory mask = 0775
    
    [printers]
    	path = /tmp
    	printable = yes
    	guest ok = yes
    	browseable = no
    
    ; Uncomment if you need to share your CD-/DVD-ROM Drive
    ;[DVD-ROM Drive]
        ;path = /media/cdrom
        ;browseable = yes
        ;read only = yes
        ;guest ok = yes
    
    [Media]
    	path = /media/
    ;	browseable = yes
    	
    	create mask = 0644
    ;	directory mask = 0755
    	force user = krothenbaum
    	force group = krothenbaum
    	valid users = administrator, avahi-autoipd, avahi, backup, bin, daemon, dhcp, games, gdm, gnats, haldaemon, hplip, irc, itunes, klog, krothenbaum, list, lp, mail, man, messagebus, news, nobody, proxy, root, smbguest, statd, sync, sys, syslog, uucp, www-data
    available = no
    browsable = no
    public = no
    writable = yes

  9. #549
    Join Date
    Apr 2006
    Location
    Italy
    Beans
    41

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    you are probably right but I'm stumped, i have 4 Ubuntu pcs with the same smb.conf the only difference being the computer name.on all 4 pcs I have the same user sandman with the same password even the folders I share are the same! the only difference is that the server is the 64bit version and has no gui. I log in with putty to the server with no problem. 3 of the pcs work perfectly! the server does not!















    i

  10. #550
    Join Date
    Sep 2007
    Beans
    33

    Re: HOWTO: Setup Samba peer-to-peer with Windows

    Quote Originally Posted by the7yearplan View Post
    I set up samba on my linux desktop so that I could access some files on my windows laptop. I ran through the howto and at first I could not see the linux box at all but after some time popped in the workgroup. If I try to access it however I get the following error message:

    "\\Linuxbox is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.

    The network path was not found."

    The windows username and password matches the linux username.

    Both computers are connected to the router by wireless only, if that makes any difference.

    Also here is my smb.conf
    Code:
    [global]
        ; General server settings
    	netbios name = linuxbox
    	
    	workgroup = jbk
    	announce version = 5.0
    	socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
    	interfaces = lo, ath0
    	bind interfaces only = true
    
    	passdb backend = tdbsam
    	security = user
    	null passwords = true
    	username map = /etc/samba/smbusers
    	name resolve order = hosts wins bcast
    
    	wins support = yes
    
    	printing = CUPS
    	printcap name = CUPS
    
    ;	syslog = 1
    	syslog only = yes
    ;	encrypt passwords = yes
    ;	guest ok = no
    ;	guest account = nobody
    
    ; NOTE: If you need access to the user home directories uncomment the
    ; lines below and adjust the settings to your hearts content.
    ;[homes]
        ;valid users = %S
        ;create mode = 0600
        ;directory mode = 0755
        ;browseable = no
        ;read only = no
        ;veto files = /*.{*}/.*/mail/bin/
    
    ; NOTE: Only needed if you run samba as a primary domain controller.
    ; Not needed as this config doesn't cover that matter.
    ;[netlogon]
        ;path = /var/lib/samba/netlogon
        ;admin users = Administrator
        ;valid users = %U
        ;read only = no
    
    ; NOTE: Again - only needed if you're running a primary domain controller.
    ;[Profiles]
        ;path = /var/lib/samba/profiles
        ;valid users = %U
        ;create mode = 0600
        ;directory mode = 0700
        ;writeable = yes
        ;browseable = no
    
    ; NOTE: Inside this place you may build a printer driver repository for
    ; Windows - I'll cover this topic in another HOWTO.
    [print$]
    	path = /var/lib/samba/printers
    ;	browseable = yes
    	guest ok = yes
    ;	read only = yes
    	write list = root
    	create mask = 0664
    	directory mask = 0775
    
    [printers]
    	path = /tmp
    	printable = yes
    	guest ok = yes
    	browseable = no
    
    ; Uncomment if you need to share your CD-/DVD-ROM Drive
    ;[DVD-ROM Drive]
        ;path = /media/cdrom
        ;browseable = yes
        ;read only = yes
        ;guest ok = yes
    
    [Media]
    	path = /media/
    ;	browseable = yes
    	
    	create mask = 0644
    ;	directory mask = 0755
    	force user = krothenbaum
    	force group = krothenbaum
    	valid users = administrator, avahi-autoipd, avahi, backup, bin, daemon, dhcp, games, gdm, gnats, haldaemon, hplip, irc, itunes, klog, krothenbaum, list, lp, mail, man, messagebus, news, nobody, proxy, root, smbguest, statd, sync, sys, syslog, uucp, www-data
    available = no
    browsable = no
    public = no
    writable = yes
    first of all... you have to have a server string
    Code:
    server string = linuxbox
    second, turn off wins unless you're setting up a static IP and you know what you're doing.
    third, what the is this?
    Code:
    [Media]
           path = /media/
    ;       browseable = yes
    
           create mask = 0644
    ;       directory mask = 0755
           force user = krothenbaum
           force group = krothenbaum
           valid users = administrator, avahi-autoipd, avahi, backup, bin, daemon, dhcp, games, gdm, gnats, haldaemon, hplip, irc, itunes, klog, krothenbaum, list, lp, mail, man, messagebus, news, nobody, proxy, root, smbguest, statd, sync, sys, syslog, uucp, www-data
    available = no
    browsable = no
    public = no
    writable = yes
    this is a little more tidy and... sensible.
    Code:
    [Media]
           path = /media/
           browseable = yes
           create mask = 0644
           directory mask = 0755
           force user = krothenbaum
           force group = krothenbaum
           public = yes
           writable = yes
    fourth... take out this line:
    Code:
    passdb backend = tdbsam
    because the default value (smbpasswd) does a much better job. then use smbpasswd to add and enable the user krothenbaum in the smbusers database and be sure to use the same password as the login password. you can 'man smbpasswd' if you want more info on smb users.

Page 55 of 106 FirstFirst ... 545535455565765105 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •