Link to home
Start Free TrialLog in
Avatar of Shaun Wingrin
Shaun WingrinFlag for South Africa

asked on

Samba server hosted on CentOs 5 server

Say,
can anyone give me an example of settings to setup samba to operate in a simple windows workgroup i.e. no domain present ? Windows PC's running Windows 7

Samba version 3.03333958
ASKER CERTIFIED SOLUTION
Avatar of comfortjeanius
comfortjeanius
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shaun Wingrin

ASKER

tx.
I've followed this.

I'm asked for login by win7 when try to open the shared folder from explorer....
what does your /etc/samba/smb.conf look like?


Plus what version of Windows 7 do you have ?
Check this link out ...

http://www.stat.tamu.edu/how_to/samba_7.pdf

Apparently you have to make some minor configuration on  windows 7 becuz it does not play fair.
I've tried this ID: 39282783 but same error.

Windows 7 Professional and Win7 Home Basic
smb.conf.txt
Try running this from the Windows client in the elevated cmd prompt

net use * /delete

and try to reconnect to see what happens.
Same problem.
You can delete

[Share]
path = /home/share
writable = yes
guest ok = yes
create mode = 0777
directory mode = 0777
share modes = yes

because your share is

[madisk]
;user = a1
path = /usr/src/a1madisk
writable = yes
guest ok = yes
create mode = 0777
directory mode = 0777
share modes = yes


This was just an example of what is should look like
problem persists....
The line with ;user = a1 should probably be valid user = a1
[madisk]
;user = a1
path = /usr/src/a1madisk
writable = yes
guest ok = yes
create mode = 0777
directory mode = 0777
share modes = yes

http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-samba-configuring.html


Check this out


http://stackoverflow.com/questions/9391033/setting-up-samba-share-from-centos-directory-to-windows-7
Do you have Windows Live Essential or Window Live Sign-in Assistant installed?

Try uninstalling this program and try again.


Plus try commenting out these lines like this

;security = share
;passdb backend = tdbsam
Tx, this helps a little ID: 39290145
However each time PC reboots need to red- the steps.

ID: 39290329:
Windows Live Essential or Window Live Sign-in Assistant - Not installed.

;security = share
;passdb backend = tdbsam

tried and restarted, but same...
windows key + r
Type gpedit.msc

Open “Computer Configuration”/Windows Settings/Security Settings/Local Policies/Security Settings.

In the right pane, enable the following policies:

Network access: Allow anonymous SID/name translation

Network access: Let Everyone permissions apply to anonymous users

For you Windows 7 Home Basic you can download the this software for the local group policy from here

Then try
windows key + r  
type secpol.msc
Now back to Local Policies
Security Options
Network Security: LAN Manager authentication level
Send LM &
NTLM -- use NTLMv2 session security if
negotiated
Click Okay

Then retest and postback
Tx, now doesn't prompt for username & pwd, but error:  "You don't have permission to access.."

I execute:
 smbpasswd -a etc. and restarted samba and connected without username/pwd prompt.
Don't think  issue on reboot of win7 pc is resolved though...
Don't think  issue on reboot of win7 pc is resolved though...


What issue that you are having after reboot?
The username / pwd is forgotten & need to run smbpasswd & restart smb server
I thought you are not trying to use a username and password?


lets try this

windows key + r
Type or copy and paste command: control /name Microsoft.CredentialManager

Click on adding Windows credentials
Input information

If that does not work delete that credentials and add generic credential

Post back
This did work:
Type or copy and paste command: control /name Microsoft.CredentialManager

Click on adding Windows credentials
Input information
It's failing on one PC with error "You do not have permission"..."

Any ideas how to solve error in this PC (Win7 Prof).
alternatively,
I would be fine with no security and restrict access to IP of PC. How can I add a list of allowed hosts? Are they comma separated?
Tx.
What happens when you run this command on the Linux box

smbclient -L localhost

Plus you did not change any permission and are you inputting the correct password.

"smbpasswd  will allow you to change the password of the samba user"

I configure mines on a Linux Mint 14 Nadia without a password or user account. I had my firewall enable so I ran....

sudo ufw allow from <ip address> to  any port 139
NOTE: This will allow by specific port and IP address

Do you have your firewall  enable, if you do you might have to open the port for NetBIOS?

Plus try sudo chmod -R 777 <path of external drive>

http://askubuntu.com/questions/113650/windows-users-unable-to-access-samba-share-of-an-external-drive
tx.

[root@a1 ~]# smbclient -L localhost
-bash: smbclient: command not found
It probably not install try

yum install samba-client

or

su -c "yum install samba-client"
Just been thinking...
Does Samba support Windows 7?
It seems ridiculous to battle to connect to it....
Doe anyone still use Samba?
Is there perhaps another way to setup Windows to Linux file access?
Anyone out there?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Gr8. How can I upgrade my version Samba version 3.03333958 to yours?
Avatar of jlevie
jlevie

The easiest way would be to upgrade the system to CentOS 6. I don't know if there is an rpm available anywhere or if you'd have to build from source.