LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2004, 01:06 PM   #1
blink_00
LQ Newbie
 
Registered: Oct 2004
Distribution: Suse 9.2 OpenExchange 4.1 United Linux
Posts: 13

Rep: Reputation: 0
Samba - folders asking for password but wont accept


I have Samba up & running on suse 9. I am trying to set up sharing on some folders & files on Samba for some XP machines to see. I want full rights read,write,execute for an office to share. So far I have created the folders in the smb.conf and the folders show up when I go to Network Neighborhood on the xp machines...no problem there. However when I click on the folder Blocks for instance...i get a dialog box.. Server/user & password ,fill it in but it will not open. What am I doing wrong?

: I have created users and passwords using useradd & smbpasswd
: security is set to share
: server is Austin
: workgroup is bahamas

smb.conf :

[global]
add user script = /usr/sbin/addsmbmachine2ldap %m
admin users = administrator
domain logons = yes
domain master = yes
encrypt passwords = yes
ldap admin dn = uid=cyrus,dc=capital,dc=com
ldap del only sam attr = Yes
ldap filter = (&(uid=%u)(objectclass=sambaAccount))
ldap port = 389
ldap server = localhost
ldap ssl = No
ldap suffix = dc=capital,dc=com
log level = 1
logon home = \\%L\%U
logon path = \\%L\%U\profile
map to guest = Bad User
os level = 255
preferred master = yes
printcap name = CUPS
printing = CUPS
security = share
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
syslog = 0
time server = Yes
unix extensions = Yes
username map = /etc/samba/smbusers
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
wins support = yes
workgroup = bahamas

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
browseable = no
guest ok = yes
writable = yes
share modes = yes
[homes]
browseable = No
comment = Home Directories
create mask = 0640
directory mask = 0750
read only = No
valid users = %S
[print$]
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = ntadmin
path = /var/lib/samba/drivers
write list = @ntadmin root
[printers]
browseable = No
comment = All Printers
create mask = 0600
path = /var/tmp
printable = Yes
[blocks]
path = /data/blocks
browseable = yes
force create mode = 0775
force directory mode = 0775
public = yes
read only = No
valid users = %S
 
Old 12-02-2004, 05:01 PM   #2
wesleywest
Member
 
Registered: Aug 2004
Posts: 43

Rep: Reputation: 15
first of all start off with a simple samba script like this

# Samba config file created using SWAT
# from 10.0.0.151 (10.0.0.151)
# Date: 2004/11/05 17:08:08

# Global parameters
[global]
workgroup = LEXIUN
server string = %h server (Samba %v)
encrypt passwords = Yes
obey pam restrictions = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
invalid users = root

[homes]
comment = Home Directories
create mask = 0700
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No

[test1]
comment = swat samba test
path = /youchoosethepaht
read only = No
guest ok = Yes


the scritp above is created with swat and you need a user name + password to loging
be sure you create the path = /youchoosethepaht and to be sure chmod 777 the folder
 
Old 12-04-2004, 12:38 AM   #3
blink_00
LQ Newbie
 
Registered: Oct 2004
Distribution: Suse 9.2 OpenExchange 4.1 United Linux
Posts: 13

Original Poster
Rep: Reputation: 0
thanks wesleywest
I loaded this and changed the workgroup, created path /temp, did the chmod and now I can see the temp folder and access it !!
I think why i was having prob's before is that I had /data/temp and I dont know how to create permissions down 2 levels so all I was seeing is the data folder but couldnt access any folders inside /data.. I've lots to learn.

Thanks!
 
  


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
su doesn't accept my password CGameProgrammer Linux - General 7 10-13-2004 12:07 PM
why wont my box accept pings? disinformation Linux - General 5 01-05-2004 08:43 AM
su root doesn't accept password Scheike Linux - General 2 09-10-2003 06:38 AM
RH 8.0 installer wont accept keyboard input exitsfunnel Linux - General 1 05-27-2003 10:18 AM
Samba - wont accept pass from XP machine nuzzy Linux - General 10 07-04-2002 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:30 AM.

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