Bekijk de volledige versie : 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
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
[GLOBAL]
...
security=share
...
to
[GLOBAL]
...
security=user
guest account=nobody
guest ok=no
guest only=no
encrypt passwords=yes
...
And add a group to system:
nano /etc/group
...
smbgroup:X:100:smbuser1,smbuser2,..,smbuserN
And add some user to system:
nano /etc/passwd
...
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):
passwd smbuser1
passwd smbuser2
...
passwd smbuserN
and set sabma passwd to user(s)
smbpasswd -a smbuser1
smbpasswd -a smbuser2
...
smbpasswd -a smbuserN
And add some files to flashfs:
edit .files:
nano /usr/local/.files
add lines:
...
/etc/group
/etc/passwd
/etc/smbpasswd
add your smc.conf files:
[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:
flashfs save
flashfs commit
flashfs enable
Bye,
George
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.
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 :)
Tamadite
09-07-2009, 23:06
http://wl500g.info/showpost.php?p=104035&postcount=10