Page 18 of 106 FirstFirst ... 816171819202868 ... LastLast
Results 171 to 180 of 1059

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

  1. #171
    Join Date
    Jun 2005
    Beans
    60

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

    Ok i'am going to be a little more specific:
    And a little more background info: My account name/password is on windows is different then on my laptop. I think this may be a problem from reading some of the forum posts. So how do I fix this?


    smbclient -L localhost -U% gives me:

    Domain=[HOME SERVER] OS=[Unix] Server=[Samba 3.0.22]

    Sharename Type Comment
    --------- ---- -------
    print$ Disk
    MyFiles Disk
    IPC$ IPC IPC Service ()
    ADMIN$ IPC IPC Service ()
    Domain=[HOME SERVER] OS=[Unix] Server=[Samba 3.0.22]

    Server Comment
    --------- -------
    BORIS-LAPTOP
    NESIC-SERVER

    Workgroup Master
    --------- -------
    HOME SERVER BORIS-LAPTOP


    My smb.conf is:

    [global]
    ; General server settings
    netbios name = boris-laptop
    server string =
    workgroup = HOME SERVER
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    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

    ; 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

    [MyFiles]
    path = /home/samba
    browseable = yes
    read only = no
    guest ok = no
    create mask = 0644
    directory mask = 0755
    force user = boris
    force group = boris
    Last edited by parradux; October 3rd, 2006 at 03:56 AM.

  2. #172
    Join Date
    Mar 2006
    Beans
    1

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

    Hi,


    Everithing worked fine. Getting Windows XP to see the network is a little bit har but samba documentation linked helped a lot.

    However, I still have some problems:

    Connecting from XP works fine. There are two users and They are correctly set up.

    Connection from Ubuntu, only one user password works! I probably did sometthing wrong, but I can't figure what could be.

    I have two computer XP/Ubuntu and I'm trying to set a network all transparent whatever OS they are running. Which means I'd like to have a sambafs in fstab, but I wouldn't like to type in my password in fstab. Windows files are really public, I only need to enforce privacy on the linux side.

    Thanks for any help.
    Last edited by lbarosi; October 3rd, 2006 at 09:03 AM. Reason: Problems solved. Some New problems

  3. #173
    Join Date
    Apr 2005
    Beans
    54

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

    I've had this setup, and it works beautifully. However, I have two problems with my setup, which has a laptop running XP and connected with a wireless card to a router, which connects to my Ubuntu desktop which has the printer attached.

    1) Printing is flaky. Once the print command is issued on the laptop, the print menu takes about a minute to show up. Sometimes, it just doesn't work whatsoever.

    2) File transfers are very slow; maybe 50K/sec. If I transfer a file over the same connection with apache or a ftp server, I get full 802.11g speeds.

  4. #174
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    lbarosi=if you are worried about adding a windows share to your fstab and not wanting to put in your username and password just use a credentials file and make it only openable by root. check this site out, it has helped everyone I have ever told about it.
    http://www.justlinux.com/nhf/Filesys...rmanently.html
    DDM, are you atalking about when you transfer files and you sitting at your winxp box? or when you are sitting at your linux box. then if you're at windows, are you going thru network neighborhood or are you mapping a network drive. i noticed things go faster when you map and a network drive. also, ftp is always gonna be faster, it's a totally different protocol! maybe there is an answer here:
    http://www.gatago.com/linux/samba/19227375.html

    i personally use ftp when i need to transfer movies or xbox games, if it's just a small file or whatever than i use smb. i sometimes even use ssh.

  5. #175
    Join Date
    Aug 2006
    Location
    Durban, South Africa
    Beans
    1
    Distro
    Ubuntu 6.06

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

    Followed the instructions at the start of this thread and Samba is working fine, I am able to browse the XP box and pull files into Ubuntu. My question is this, while I was following the instructions I got to a piont when I kept getting an error message ( Please look below). Its at the piont when you have tp put in your username with a password, Strormbringer recommends the one i used at installation which I did, howver I get the error message, thing is Samba works fine regardless, should I be worried or just write it off to good luck?

    Error Message:

    garth@garth-desktop:~$ sudo smbpasswd -L -a your_username
    Password:
    New SMB password:
    Retype new SMB password:
    Failed to initialise SAM_ACCOUNT for user your_username. Does this user exist in the UNIX password database ?
    Failed to modify password entry for user your_username

  6. #176
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

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

    it's telling you that whatever username you're trying to add to your smb database is NOT a linux user on the machine. since smb refers to the same database that linux uses for it's users, then in order to add a smb user you need to have already added that same user to your linux box. you can either use the gui within system, admin, users and groups or i think from the terminal it's adduser 'username'. what i find weird is that you state that samba is already working for you. why are you trying to add more users than. after I re-read your post, something is totally wrong here. there would be no way that samba would be working fine if you were unsuccessfull in adding your username to smb if your smb.conf has passwd backend=tbdsam ( i think that's what it is) also, are you using security=user or share. if you are using share than it might be working because then you're not using authentification for your file sharing and ANYONE on your lan can access see files. i am curious, are you saying that you are able to VIEW your winxp box thru nautilus and also view the shares on it. if so, please post your smb.conf. thanx. this is one thing that just will not work for me. do you have the windows xp guest account activated? thank you for posting if you do, you could help me and I can maybe help you, if you need that is.

  7. #177
    Join Date
    Oct 2006
    Location
    Durban, South Africa
    Beans
    59
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    cooll I have no probs with that, but you got to let me know where to get, and how to get the smb.conf file.

  8. #178
    Join Date
    Oct 2006
    Location
    Durban, South Africa
    Beans
    59
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Nevermind dumb question, as far as the seeing other Xp Boxes on my lan, I there is only one other one, and if i go to plase, network servers i am able to browse it with no password requests.

    Here is my smb.conf file:

    [global]
    ; General server settings
    netbios name = garth
    server string =
    workgroup = WORKGROUP
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    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

    ; 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

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

    Please offer your opinoion because I would rather have it done the right way
    Last edited by sKuarecircle; October 4th, 2006 at 07:01 PM. Reason: add on

  9. #179
    Join Date
    Aug 2006
    Beans
    1
    Distro
    Xubuntu 6.06

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

    When I enter:
    Code:
    sudo gedit /etc/samba/smb.conf
    I get:
    Code:
    sudo: gedit: command not found
    I also navigated to the file in the file manager and tried to edit it by opening the file from there and saving it, but it wouldn't let me save the changes. It popped up an error box that said "Can't open file to write"
    What can I do?

  10. #180
    Join Date
    Sep 2006
    Location
    UK
    Beans
    76
    Distro
    Ubuntu 8.10 Intrepid Ibex

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

    Thanks Stormbringer - just what I needed!

    Quote Originally Posted by core View Post
    when I try to map a drive to it, it says (after a few seconds attemping to connect)

    "The mapped network drive could not be created because the following error has occured: An extended error has occurred."
    The resolution to that problem may have already been posted (I haven't read all 18 pages), but I also got that unhelpful message when I'd used my Windows username instead of my Ubuntu username in the Samba config file.

    Quote Originally Posted by pcpat67 View Post
    When I enter:
    Code:
    sudo gedit /etc/samba/smb.conf
    I get:
    Code:
    sudo: gedit: command not found
    I also navigated to the file in the file manager and tried to edit it by opening the file from there and saving it, but it wouldn't let me save the changes. It popped up an error box that said "Can't open file to write"
    What can I do?
    I'm no expert, but perhaps you haven't created the smb.conf file successfully? Try repeating the 'touch' command to create the file first.

Page 18 of 106 FirstFirst ... 816171819202868 ... 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
  •