SAMBA security problem

This forum is for all other ARMv5 devices

SAMBA security problem

Postby Mazdaspeed6 » Sat Nov 26, 2011 4:19 am

I have 3 samba shares on my POGO and are trying to restrict 2 of them with passwords. Right now there all wide open and anyone can access. Through googling i added "Jamie" to the smbpasswd and enabled "USER" security and added that user to the allowed users for that share and when i access it from Win7 i enter the username and password in normal format as well as "pogo\Jamie" as if i enter the "Jamie" it says it logging onto my computer instead of the POGO. Heres my smb.conf;
basically i want to protect the DATA share with a password as it contains sensitive data.

[global]
dns proxy = no
log file = /var/log/samba/%m.log
load printers = no
netbios name = POGO
printing = bsd
server string = POGO
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
workgroup = WORKGROUP
os level = 20
disable spools = yes
printcap name = /dev/null
security = user
map to guest = Bad User
max log size = 50

[External Drive]
path = /media/External
read only = no
public = yes
writable = yes
force user = root
[Data]
path = /media/Data
valid users = Jamie
read only = no
public = no
writable = yes
force user = root
[/code]
Mazdaspeed6
 
Posts: 54
Joined: Sun Jul 17, 2011 1:13 am

Re: SAMBA security problem

Postby syrex » Thu Feb 02, 2012 2:09 am

I'm having a similar problem. I followed the [url]guide[/url]. Setting up full public access works, however when I modify the smb.conf to match the password protected sharing as well as public sharing I can't seem to access the password protected folder from my WIN7 machine. I'm tried different combinations of root username such as just root, ALARM\root etc and my root password, but still can't get in. I've also tried modifying the /etc/security/limits.conf file per the guide, but no luck. My current smb.conf file is
$this->bbcode_second_pass_code('', ' [global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = user
null passwords = yes
map to guest = bad user
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
[Root]
path = /
read only = no
public = yes
writable = yes
guest ok = no
[External]
path = /media/hd-sdb1
read only = no
public = yes
writable = yes
guest ok = yes')
Any Suggestions?
syrex
 
Posts: 6
Joined: Sun Dec 18, 2011 3:37 am

Re: SAMBA security problem

Postby WarheadsSE » Thu Feb 02, 2012 12:29 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 3 guests