Results 1 to 5 of 5

Thread: Access Samba share from computer in domain

  1. #1

    Access Samba share from computer in domain

    Hi all!

    I have a problem with accessing share folder on my home router from my company notebook. This notebook belongs to company domain, but when I am at home, it is not connected to company network. I can see only login dialog with filled field "User name" (there is "172.16.0.1\Guest") that i can't changed (text box is disabled).

    When I try to access my share folder from other home computer or I login on my company NB as local user, everything works.

    I have ASUS WL-500 GP V2, Oleg's firmware 1.9.2.7-10, Samba 2, Win XP SP3 on all computers.

    This is my smb.conf listing:
    [global]
    workgroup = TDEVELOPX
    netbios name = ROUTER
    server string = Router
    security = SHARE
    log level = 1
    log file = /opt/var/log/samba/log.%m
    max log size = 100
    dns proxy = No
    guest account = admin
    read only = No
    guest ok = Yes
    hosts allow = 172.16.0.

    [share]
    comment = Data share
    path = /tmp/harddisk/data

    Thank you for your advices and suggestions!

    Mira
    Last edited by mira; 08-07-2009 at 14:58.

  2. #2
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Quote Originally Posted by mira View Post
    Hi all!

    I have a problem with accessing share folder on my home router from my company notebook. This notebook belongs to company domain, but when I am at home, it is not connected to company network. I can see only login dialog with filled field "User name" (there is "172.16.0.1\Guest") that i can't changed (text box is disabled).

    When I try to access my share folder from other home computer or I login on my company NB as local user, everything works.

    I have ASUS WL-500 GP V2, Oleg's firmware 1.9.2.7-10, Samba 2, Win XP SP3 on all computers.

    This is my smb.conf listing:
    [global]
    workgroup = TDEVELOPX
    netbios name = ROUTER
    server string = Router
    security = SHARE
    log level = 1
    log file = /opt/var/log/samba/log.%m
    max log size = 100
    dns proxy = No
    guest account = admin
    read only = No
    guest ok = Yes
    hosts allow = 172.16.0.

    [share]
    comment = Data share
    path = /tmp/harddisk/data

    Thank you for your advices and suggestions!

    Mira
    Hi!

    Change

    Code:
    [GLOBAL]
    ...
    security=share
    ...
    to
    Code:
    [GLOBAL]
    ...
    security=user
    guest account=nobody
    guest ok=no
    guest only=no
    encrypt passwords=yes
    ...
    And add a group to system:

    Code:
    nano /etc/group
    Code:
    ...
    smbgroup:X:100:smbuser1,smbuser2,..,smbuserN
    And add some user to system:
    Code:
    nano /etc/passwd
    Code:
    ...
    smbuser1::1000:1000:smbgroup:/opt:/bin/sh
    smbuser2::1001:1001:smbgroup:/opt:/bin/sh
    ...
    smbuserN::1nnn:1nnn:smbgroup:/opt:/bin/sh
    set password for user(s):
    Code:
    passwd smbuser1
    passwd smbuser2
    ...
    passwd smbuserN
    and set sabma passwd to user(s)
    Code:
    smbpasswd -a smbuser1
    smbpasswd -a smbuser2
    ...
    smbpasswd -a smbuserN
    And add some files to flashfs:

    edit .files:
    Code:
    nano /usr/local/.files
    add lines:
    Code:
    ...
    /etc/group
    /etc/passwd
    /etc/smbpasswd
    add your smc.conf files:
    Code:
    [share]
    ...
    public=no
    valid users=@smbgroup,smbuser1
    writeable=yes
    browseable=yes
    force user=admin
    force group=root
    create mode=770
    In "valid users=" use "@" for group name, and without "@" for samba user.
    The "," is a list separator.

    and save to flashfs:
    Code:
    flashfs save
    flashfs commit
    flashfs enable
    Bye,
    George

  3. #3
    Join Date
    Dec 2008
    Location
    Netherlands
    Posts
    74
    Hopefully above will work, I have my doubts regarding the Domain/Workgroup issue though. So far I'm not aware that you can share between different Windows Workgroups/Domains, nevertheless I'm always open to learn something new. What you could try is to rename your home workgroup (including all its members) to the same name as your company's domain. I've had that on my previous laptop and when I renamed the entire home network which allowed me to share between the two. Don't try to have the company laptop join your local workgroup, because your company's IT department will then manually have to re-add you to their domain, which will not make very happy. Plus you'll lose a couple of valuable hours not being able to work.

  4. #4
    Thank You All for your posts.

    I've just solved my problem like this:

    smb.conf:
    [global]
    netbios name = ROUTER
    server string = ROUTER
    security = USER
    encrypt passwords = Yes
    hosts allow = 172.16.0.
    workgroup = WORKGROUP
    log file = /opt/var/log/samba/log.%m
    max log size = 100
    dns proxy = No
    read only = No
    smb password file = /opt/etc/samba/smbpasswd
    [share]
    comment = Data share
    path = /tmp/harddisk/data

    ... and finally I've added password for my user into smbpasswd (with "smbpasswd" utility)

    This works on my NB that is in company domain and on my home PC as well.
    Of course, I had to login for first time I access share folder (as router_user with password from smbpasswd)

    So this is my solution, maybe it is not ideal, but it works

  5. #5
    Join Date
    Nov 2004
    Location
    Sweden
    Posts
    259

Similar Threads

  1. Samba access from a XP domain PC
    By bogd_A in forum WL-500gP Q&A
    Replies: 8
    Last Post: 13-07-2008, 17:10
  2. Replies: 1
    Last Post: 18-05-2007, 08:30
  3. Replies: 0
    Last Post: 15-12-2005, 21:05

Tags for this Thread

Posting Permissions

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