LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-10-2009, 09:35 PM   #16
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30

It's still giving me that silly login screen & won't let me get past it. I'm rebooting my XP box to see if logging back in will solve the problem (I do have the data, I saw it in PuTTY, so I know it's been remounted. Why it wasn't mounted on boot-up is beyond me - UNLESS it's that SELinux thing where changing the OS HDD causes the data drive to require some special attention. That's SO SPECIAL!
 
Old 01-10-2009, 09:47 PM   #17
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
David,

try using the smbclient program from your server to itself and see what you can connect to. You'll need to use the man page I'm afraid. Rule out WIndows first
 
Old 01-10-2009, 10:04 PM   #18
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Nope, no change. Just that crazy login dialog box that I can't get past, almost as if the password was wrong.

I'm going to delete my users in both Linux & Samba, and recreate them.

userdel & useradd, smbpasswd.

I did userdel, then "useradd -password password david" & that seemed to work.

Thenk I did "smbpasswd david" to change the password, and that failed, so I did "smbpasswd -a david" & it prompted me for passwords and came back saying that the user was added. Mind you, I've done this before and it still didn't work. I don't know if it matters now because I did userdel, or if it's because I had to remount the drive because I'd switched OSS HDDs.

Let me check & see if I have access now.

Nope, still no bananas, other than the one's that are driving me!

I can get to the data in PuTTY using my admin login & password, but I can't even get there from Windows Explorer using any username or password.

I'm stumped. Not sure what to do anymore. My head is spinning & I don't have anywhere else that I can think to check. I'm SURE it's something really simple, but for the life of me I can't figure it out.
 
Old 01-10-2009, 10:05 PM   #19
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
David,

try using the smbclient program from your server to itself and see what you can connect to. You'll need to use the man page I'm afraid. Rule out WIndows first

Ok, let me try that. Thanks for the suggestion.
 
Old 01-10-2009, 10:20 PM   #20
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
From the man pages, I did this:

Code:
root@RCH-SERVER:/etc/samba# smbclient //RCH-SERVER/NW-DATA/DATA password -U david
Domain=[RCH-SERVER] OS=[Unix] Server=[Samba 3.2.3]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
root@RCH-SERVER:/etc/samba#
So, I tried THIS:
Code:
root@RCH-SERVER:/etc/samba# smbclient //RCH-SERVER/DATA password -U david
Domain=[RCH-SERVER] OS=[Unix] Server=[Samba 3.2.3]
tree connect failed: NT_STATUS_ACCESS_DENIED
root@RCH-SERVER:/etc/samba#
Note that my share is DATA, but the folder is //RCH-SERVER/NW-DATA/DATA.

Maybe I need to find a bottle of Scotch (the kids ARE already asleep!).
 
Old 01-10-2009, 10:25 PM   #21
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Once upon a time, I did a little bit of computer & network consulting - I worked for a small 1-man (before I came on board) company. He dealt primarily with Novell, back in their much earlier days (this was 10-11 years ago). I don't remember much about what I did with regard to configuring servers & clients, but I do remember that Novell had a client that installed on the Windows computers that forced the server to recognize the user and synchronize the password. If you installed the client on the Windows machines, everything worked perfectly. If you didn't install the client on the Windows machines, it was impossible to get access. As I try to paddle my boat through these stormy waters, I'm beginning to wonder Why hasn't somebody built a client for Windows that did all this work automatically???
 
Old 01-10-2009, 10:34 PM   #22
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
what does

smbclient -L localhost

show?


Are you able to create a temporary share on a non RAID volume?
 
Old 01-10-2009, 10:42 PM   #23
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
what does

smbclient -L localhost

show?
Here it is:
Code:
root@RCH-SERVER:/etc/samba# smbclient -L localhost
Enter root's password:
Domain=[RCH-SERVER] OS=[Unix] Server=[Samba 3.2.3]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        DATA            Disk      Network-Data
        IPC$            IPC       IPC Service (RCH-SERVER server (File & Print Server))
Domain=[RCH-SERVER] OS=[Unix] Server=[Samba 3.2.3]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        RCH-WORKGROUP        RCH-APRIL
root@RCH-SERVER:/etc/samba#
Quote:
Originally Posted by billymayday View Post
Are you able to create a temporary share on a non RAID volume?
Not sure. Haven't tried. Brain fried over this one. Does the above response indicate that I need to try that? Or does it indicate something wrong with my username/password?
 
Old 01-11-2009, 12:11 AM   #24
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd suspect the raid, just because the username shouldn't bee too much of an issue (did you restart samba after you mounted it?)

Why don't you create a samba user without a password (yes, you can), and try that - oh and try the smbclient -L thing as david rather than root.
 
Old 01-11-2009, 12:51 AM   #25
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
Originally Posted by billymayday View Post
oh and try the smbclient -L thing as david rather than root.
I just got out of the shower and, while standing under the streaming HOT water, thought that exact same thought!

Here's the PuTTY from my XP Pro desktop:

Code:
login as: david
david@192.168.2.5's password:
Access denied
And, when I try to login AT the server (I'll retype that here):
Code:
RCH-SERVER login: david
Password:

Login incorrect
So, it's looking more & more to me like an issue with the password! I tried it as april (my other user), and got in!

Code:
login as: april
april@192.168.2.5's password:
Linux RCH-SERVER 2.6.27-7-server #1 SMP Fri Oct 24 07:20:47 UTC 2008 x86_64

  System information as of Sun Jan 11 00:40:02 CST 2009

  System load: 0.0               Memory usage: 1%   Processes:       68
  Usage of /:  1.2% of 70.33GB   Swap usage:   0%   Users logged in: 0

Could not chdir to home directory /NW-DATA/DATA/USERS/april: Permission denied

$ smbclient -L localhost
Enter april's password:
Domain=[RCH-SERVER] OS=[Unix] Server=[Samba 3.2.3]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        DATA            Disk      Network-Data
        IPC$            IPC       IPC Service (RCH-SERVER server (File & Print Server))
Domain=[RCH-SERVER] OS=[Unix] Server=[Samba 3.2.3]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        RCH-WORKGROUP        RCH-APRIL

$ dir
bin    dev   initrd.img  lost+found  NW-DATA  root  sys  var
boot   etc   lib         media       opt      sbin  tmp  vmlinuz
cdrom  home  lib64       mnt         proc     srv   usr

$ cd NW-DATA
cd: 4: can't cd to NW-DATA

$
So, april can login from both the consol and PuTTY, david cannot. April cannot view the NW-DATA folder. I logged in as my root user (not "root" but the user I built during installation), and tried to view the NW-DATA folder. Here's what I got:

Code:
boss@RCH-SERVER:/$ cd NW-DATA
-bash: cd: NW-DATA: Permission denied
boss@RCH-SERVER:/$ dir NW-DATA
dir: cannot open directory NW-DATA: Permission denied
But, when I "sudo su" and become the actual root, I can get into it.

Hmmmm, me thinks this be a share issue. How do I view the share attributes, and how do I set them??? We may be on to something here!
 
Old 01-11-2009, 01:17 AM   #26
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
It's now 1 am, & I've got to take the 7 yr old to Sunday School in the morning (I'm not as young as I once was, either!), so I've got to call it a night.

I have been looking at the Samba diagnosis pages, working my way through the steps. 1-4 work perfectly. #5, nmblookup -B ACLIENT `*' gives me the > prompt and doesn't do anything else from there except print what I type and go to the next line when I press enter. Not sure what's up with that, but that sure isn't addressed in the HOWTO!

Wish I still had the energy I had ... just this morning! I'll get back after it tomorrow. I've been starting to think Ubuntu isn't the answer, considering the issues I'm encountering. But, it may be Samba, and I'd be stuck with that regardless of which distro I use. So, I'm sticking with this until I can consistently make it work on a new installation.

Thanks for the help!
-> David
 
Old 01-11-2009, 01:41 AM   #27
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The logon dialog you posted says the domain is RCH-david while the domain name in the smb.conf is RCH-WORKGROUP. Are the clients in a different workgroup?

Also, I'm not certain whether a hyphen is a legal domain name character.

Last edited by jschiwal; 01-11-2009 at 01:43 AM.
 
Old 01-11-2009, 03:07 AM   #28
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by jschiwal View Post
The logon dialog you posted says the domain is RCH-david while the domain name in the smb.conf is RCH-WORKGROUP. Are the clients in a different workgroup?

Also, I'm not certain whether a hyphen is a legal domain name character.
David, perhaps confirm, but I don't believe the machine's a member of a domain, hence it will be the machine name.

David,

Note that Linux permissions trump Samba permissions, so make sure you can access the share as an ordinary user first..
 
Old 01-11-2009, 07:45 AM   #29
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
All 3 computers are in the workgroup RCH-WORKGROUP, the server's name is RCH-SERVER, my computer is named RCH-DAVID, and April's computer is RCH-APRIL. There is no domain for any machine.

I have created the users "david" & "april" exactly the same way, but they act differently. "april" is able to log into the server, but "david" is not. Neither is able to browse the share.

I have, apparently, failed to create the users correctly, and I've failed to give them proper permissions. So, my first task is to figure out how to setup the users in Linux first so that they can both login and access the share - FROM the server keyboard &/or PuTTY.
 
Old 01-11-2009, 09:31 AM   #30
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Working strictly in Linux (not even GETTING to Samba yet), I've tried to add the user "david" - here's the dialog:

Code:
root@RCH-SERVER:/home/admiral# users
admiral april
root@RCH-SERVER:/home/admiral# useradd -g users -p password  david
useradd: user david exists
root@RCH-SERVER:/home/admiral# usermod -g users -p password  david
root@RCH-SERVER:/home/admiral# users
admiral april
So, what in the programmer's world is going on?

I'm rebooting the server to see if that makes any diff.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba on fc9, how to limit access to users joemarceo Linux - Newbie 2 10-08-2008 02:20 AM
Samba Users and groups with different access? logonuser Linux - Server 2 09-07-2008 07:38 AM
Samba filesharing-rights Clowncar Linux - Networking 7 09-27-2006 10:16 AM
Samba.. NT domain users access denied.. however.. StamfordRob Slackware 3 03-24-2005 04:38 PM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration