Shaun Wingrin
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what does your /etc/samba/smb.conf look like?
Plus what version of Windows 7 do you have ?
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.
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.
ASKER
I've tried this ID: 39282783 but same error.
Windows 7 Professional and Win7 Home Basic
smb.conf.txt
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.
net use * /delete
and try to reconnect to see what happens.
ASKER
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
[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
ASKER
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
[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
Try uninstalling this program and try again.
Plus try commenting out these lines like this
;security = share
;passdb backend = tdbsam
ASKER
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...
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
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
ASKER
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...
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?
ASKER
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.CredentialManage r
Click on adding Windows credentials
Input information
If that does not work delete that credentials and add generic credential
Post back
lets try this
windows key + r
Type or copy and paste command: control /name Microsoft.CredentialManage
Click on adding Windows credentials
Input information
If that does not work delete that credentials and add generic credential
Post back
ASKER
This did work:
Type or copy and paste command: control /name Microsoft.CredentialManage r
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.
Type or copy and paste command: control /name Microsoft.CredentialManage
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
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
ASKER
tx.
[root@a1 ~]# smbclient -L localhost
-bash: smbclient: command not found
[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"
yum install samba-client
or
su -c "yum install samba-client"
ASKER
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?
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?
ASKER
Anyone out there?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Gr8. How can I upgrade my version Samba version 3.03333958 to yours?
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.
ASKER
I've followed this.
I'm asked for login by win7 when try to open the shared folder from explorer....