Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-27-2005, 04:16 PM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Rep:
|
Samba Authentication Errors.
Hello everyone. I have followed all the guides and articles i could find on this site regarding samba but am getting authentication errors. This was actually happening before i ran through everything here. I have also done a pile of other things but that article pretty much sums everything up. (couldnt post a url where this is my first post.)
Basically All my clients, Windows , Linux, and my xbox can all see each other but when i try to access the shares it wont allow the user in. I know for a fact i am not making typos.
When i open my smbusers file has the root user and my jason2=jason2 user. but when i open the smbpasswd file it has my username and the correct hash.
my fstab entry looks like this.
//windowsmachine/dataf32 /mnt/windows smbfs credentials=/home/jason2/.smbmountpasswd 0 0
i get this error
17122: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
..... Same thing from my xbox, and when i try to log in from windows. Just wont Authticate. Anyone have any suggestions. I just dunno where to go from here. Any suggestion is appreciated.
/J
Last edited by goliathlibrary; 09-27-2005 at 04:18 PM.
|
|
|
09-29-2005, 03:04 AM
|
#2
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
I can only help you or guide you in case of SAMBA with windows clients...
Are you running samba as a PDC then..
first you need to create trust machine account.
second useradd & its passwd
third smbpasswd -a -e username
On xp client box , do disable firewall.
Joing the xp machine to your domain & enter your linux root or administrator loginname & password over there. It will welcome you to domain. Restart the machine.
For roaming profile... Put proper rights to directories & make a folder for every user login in your Profile folder.
I can guide you more deeply in windows & SAMBA case..
Need more help tht too immdiately... feedback fast.
Thanks
|
|
|
09-29-2005, 11:08 AM
|
#3
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
Thanks for the reply. so i have tried that making another user and adding the machine. i get this which indicates that all was done ok when i add the password.
Enabled user jason.
But when i try to connect to it, it still will not authenticate using root or the new user. Windows XP firewall is off. Keep in mind this happens on my XBOX as well. So i am leaning towards something that is configured incorrectly on the linux box. Also you asked was i using it as a PDC, i dont belive so because i am only using a workgroup. I do remember seeing that in there tho.
I can see all the shares i set fine. as far as i know the permissions the are ok cause they are set to read for other and group. I am not sure where to go from here? any other suggestions?
/J
Last edited by goliathlibrary; 09-29-2005 at 11:09 AM.
|
|
|
09-29-2005, 11:16 AM
|
#4
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
Can you post your SMB.CONF file ????????
It will be more helpful for me.
|
|
|
09-29-2005, 11:39 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
yip sure. domain logons = No i have toyed with that from yes to no with no difference.
/J
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-04-04
[global]
workgroup = SEINFELD
netbios name = SuSeLiNuX
server string = SuSe Samba Server. Authorized Users Only.
security = user
encrypt passwords = yes
local master = no
hosts allow = 192.168.2.5 192.168.2.9
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\Suselinux\home\jason2
logon home = \\Suselinux\home\jason2
domain logons = No
domain master = No
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[jasonhome]
path = /home/jason2
valid users = @admin, root, jason2
browseable = yes
writable = Yes
create mask = 0765
public = yes
|
|
|
09-29-2005, 12:04 PM
|
#6
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
First of all
Run " smbstatus "
Then it should result all your shares on your samba server..... If getting any other error , feedback asap.
|
|
|
09-29-2005, 12:06 PM
|
#7
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
hrm u might be onto something. i get this:
jason2@SuSeLiNuX:~> smbstatus
Samba version 3.0.13-1.1-SUSE
PID Username Group Machine
-------------------------------------------------------------------
Service pid machine Connected at
-------------------------------------------------------
No locked files
so i guess it doesnt think any shares are active. Where should i go from here?. in yast all the shares look good. from windows i see the jasonhome folder.
Last edited by goliathlibrary; 09-29-2005 at 12:08 PM.
|
|
|
09-29-2005, 12:27 PM
|
#8
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
Instead of your smb.conf look fashionable.... We'll start from scratch & in starting we'll configure samba for security=user without domain logon.
[global]
workgroup = SEINFELD
netbios name = suselinux
security = user
encrypt passwords = yes
#We'll leave printing for the moment. Lets first make our minimal conf samba running.
[homes]
valid users = %u
browseable = no
read only = no
I hope you dont mind... But i dont want myself to get confused...So i want you to start with this minimal conf...coz its easy to troubleshooot in this minimal conf. Once this gets going..We'll finish rest in minutes.
do it & then restart smb service.
After tht run
smbclient -L 127.0.0.1
It will list the share of home in it.
Feedback asap.
|
|
|
09-29-2005, 02:07 PM
|
#9
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
alrite. sorry for the delay. done and done. i get this now when i run the SMB client.
Password:
Domain=[SUSELINUX] OS=[Unix] Server=[Samba 3.0.13-1.1-SUSE]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 3.0.13-1.1-SUSE)
ADMIN$ IPC IPC Service (Samba 3.0.13-1.1-SUSE)
jason2 Disk Home directory of jason2
Domain=[SUSELINUX] OS=[Unix] Server=[Samba 3.0.13-1.1-SUSE]
Server Comment
--------- -------
Workgroup Master
--------- -------
SEINFELD SUSELINUX
which is certianly looking ok. So where from here.
|
|
|
09-29-2005, 02:12 PM
|
#10
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
Your samba is working fine now.........
I assume that you have created the users... assigned them password & then added them to smbpasswd -a -e .
Now go & login to your windows box.... Go to network neigbourhood & there you'll see the home share.
Try to access it. Try creating some files in it. If getting access denied, don you worry. We'll make users as their owners with chown command.
Feedback.
|
|
|
09-29-2005, 02:27 PM
|
#11
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
hrm no go from the windows box still wont take the user and password. I;ve even added another brand new user to the system to double check. Still no go. Would i have to allow this specific windows machine access. its called jaysmachine.
|
|
|
09-29-2005, 02:40 PM
|
#12
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
We have to allow access to a windows machine , by creating a machine trust account.. but only when we are using SAMBA as a Domain controller.
Eventhough not in our case.
Wait wait wait.. you said, windows box still didnt took your username & password. In being user-mode & non-domain controller, it doesnt stop you from login to your windows box.
There's something wrong other thn the configs... You need to have very same username & password at windows box also dear. The very same username & password you have at your linux box. By this way when you login to windows box you login to your windows box with windows credentials not with SAMBA username n passwords. Any how samba wont stop you from logging you over to windows.
The schema your are talking about is the implementation of samba running as a DOMAIN CONTROLLER.
Did you got me ?
Check out 2 things.... windowx username & passwords should have to be very same of linux box username & passwords.
Feedack.
|
|
|
09-29-2005, 02:47 PM
|
#13
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
no no, i can log into windows itself fine, when i go to share it wants a username and password.
so, however, my windows box does use a different password then linux user, same username, different pass. are u saying they must be the same for this to work? even tho it prompts me and i can put whatever in
|
|
|
09-29-2005, 02:52 PM
|
#14
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
You created whtever your windows login name is with
1. useradd "username"
2. passwd username
enter password: tokens updated.
3. smbpasswd -a -e "username"
enter passwd: tokens updated & enabled user.
Thats it.
restart your samba service.
Go to windows ... double click your share.. enter username & password. It have to work. No reasons for it not to work.
|
|
|
09-29-2005, 03:01 PM
|
#15
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
Any UPDATE..................
Feedback.... m waiting for your INPUT.
|
|
|
All times are GMT -5. The time now is 07:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|