Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
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!
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
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.
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
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???
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
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?
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!
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.
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.
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..
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.