LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba - folders asking for password but wont accept (https://www.linuxquestions.org/questions/linux-newbie-8/samba-folders-asking-for-password-but-wont-accept-261808/)

blink_00 12-02-2004 01:06 PM

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

wesleywest 12-02-2004 05:01 PM

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

blink_00 12-04-2004 12:38 AM

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!


All times are GMT -5. The time now is 08:23 PM.