Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
02-05-2007, 11:12 PM
|
#1
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Rep:
|
Access linux SAMBA share from windows
I have an Ubuntu file server with samba installed.
the host name is "jack-server"
I want to access the share "allusers" from my windows box.
I type "\\jack-server\allusers" into the run prompt, and i get the User name and password prompt. However, when I type "Administrator" as the user (mapped to root) and the password, It wont login.
It's as if i dont have the right password, but I know it is correct.
here is my smb.conf
----------------------------------------------------------
[global]
passwd chat debug = yes
name resolve order = wins bcast hosts
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
idmap gid = 15000-20000
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
logon drive = H:
username map = /etc/samba/smbusers
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam
wins support = true
netbios name = jack-server
server string = %h server (Samba, Ubuntu)
printing = CUPS
idmap uid = 15000-20000
unix password sync = yes
workgroup = NOVUS
logon path = \\jack-server\profile\%U
os level = 20
auto services = global
add user script = /usr/sbin/useradd -m %u
printcap name = CUPS
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
delete user script = /usr/sbin/userdel -r %u
log level = 3
domain logons = yes
# Set CUPS for printing
# Default logon
#logon script = scripts/logon.bat
# Useradd scripts
# sync smb passwords woth linux passwords
# set the loglevel
[homes]
comment = Home
valid users = %S
read only = no
browsable = no
[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
guest ok = yes
browsable = no
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
admin users = Administrator
valid users = %U
read only = no
[profile]
comment = User profiles
path = /home/samba/profiles
valid users = %U
create mode = 0600
directory mode = 0700
writable = yes
browsable = no
[allusers]
writeable = yes
path = /home/shares/allusers
force group = users
comment = All Users
valid users = jack,win,root,@users
public = yes
create mode = 0771
|
|
|
02-06-2007, 01:59 AM
|
#2
|
Member
Registered: Feb 2007
Location: Arizona
Distribution: Currently toying with Debian-based MEPIS
Posts: 31
Rep:
|
Okay... Couple Things...
Firstly, when you say "mapped to root", do you mean you created an alias in the smbusers file, or did you do something else. There are supposedly a couple tricks to doing that. Personally I've never had any luck doing it anyway. Plus, it seems that you are (kind of) running a domain, in which case you should have "root" as a user anyway. Why not just use that?
Second, which version of Windows are you using to connect? I've found that there are many Samba intricasies that Windows treats differently with different versions, perhaps I could be more help with this info.
Lastly, did you try accessing the root of your share alone (\\jack-server)? Perhaps somehow the permissions got a little screwy. Of course the share specifies "root" as being a valid user, however Unix permissions always trump Samba permissions, and as weird as that sounds (being that we are dealing with "root" here) believe me, I've done it. After a kernel overhaul anything can happen.
Anyway get back to me and we'll work this thing out. 
Last edited by jason_dustrose; 02-06-2007 at 02:00 AM.
|
|
|
02-06-2007, 02:06 AM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
And an obvious question perhaps (and implicit in the response above) but you did add a samba user?
|
|
|
02-11-2007, 10:54 PM
|
#4
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Original Poster
Rep:
|
very sorry for not replying sooner, forgot I had posted here...
I solved the problem- I had mapped the root user (in the folder /etc/samba/users) as "Administrator" for use from windows PC's. Actually there is no such user as "Administrator" on windows... So i just had to change it to a user that was on the windows pc.
One of those stupid mistakes...
|
|
|
02-12-2007, 08:37 PM
|
#5
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
How did you forget? Aren't you automatically subscribed to your own thread?
http://www.linuxquestions.org/questi...do=editoptions
Quote:
Messaging & Notification
. . .
Default Thread Subscription ModeWhen you post a new thread, or reply to a topic, you can choose to automatically add that thread to your list of subscribed threads, with the option to receive email notification of new replies to that thread.
Default Thread Subscription Mode:
|
And pick an e-mail option.
|
|
|
02-12-2007, 08:41 PM
|
#6
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Perhaps he meant forgot he'd posted on LQ and uses hotmail or similar for notifications
|
|
|
02-17-2007, 11:55 AM
|
#7
|
Member
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207
Original Poster
Rep:
|
as i said, im sory for forgetting...
Yes, i forgot i had posted on LQ
I do have e-mail subscriptions for all my posts- but I do not have the time to go through all of them every day...
|
|
|
All times are GMT -5. The time now is 12:37 AM.
|
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
|
|