LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Win98 to Samba PDC write-access issue (https://www.linuxquestions.org/questions/linux-networking-3/win98-to-samba-pdc-write-access-issue-178769/)

NetAX 05-06-2004 10:20 PM

Win98 to Samba PDC write-access issue
 
Hi everybody, im currently using Samba version 2.2.8a as a Primary Domain Controller that authenticates users from Windows 98.

I've set everything up correctly. Users are able to logon as long as their username and password are found in the "smbpasswd" file. Their home directory can be found in network neighborhood based on their user name.

The problem i am having is being able to save files that are created on Windows 98 and then saving them to the Home directory of the user. When ever i try saving a file it tells me that i dont have the right security priviliges or something like that. I even setup a public folder and users have full read access.

I've tried many ways to allow write-access with no solution. I have tried altering the create mask integer for the share and other options such as:
printable =yes; read only= no; writable= yes; writelist =; None of these and a few other options that i dont remeber off the top of my head dont work.

Please someone point me in the right direction. I don't know if it has to do with the version i am using or if it is a Windows issue.


Smb.conf file:


# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2003-09-23
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2003-09-23
[global]
workgroup= Tux-net
os level = 65
netbios name = cosmos

time server = Yes
security = server
unix extensions = Yes
encrypt passwords = yes
map to guest = Bad User
printing = CUPS
printcap name = CUPS
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = yes

veto files = /*.eml/*.nws/riched20.dll/*.{*}/
server string = Samba PDC %v %h
hosts allow = 172.16.4., 127.
log file = /var/log/messages/samba/log.%u
max log size = 50


smbpasswd file = /etc/samba/smbpasswd
unix password sync = yes
passwd program = /usr/bin/passwd%u

;;add user script = /usr/sbin/useradd -c Machine -d /dev/null -s /bin/false
domain master = yes
domain logons = yes
preferred master = yes

logon drive = z:
logon path = \\%L\Profiles\%u
logon home = \\%L\%u


logon script = netlogon.bat

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
browseable = no
writable = no
share modes = no

[profiles]
path = /home/samba/profiles
browseable = no





[%U];;<=User share name

comment = Home Directory

writable = yes
writelist = achery
path = /home/netusers/%U
guest ok = yes
;; valid users = %U
;; create mask = 0775
;; directory mask = 0750

dorian33 05-07-2004 12:32 PM

Re: Win98 to Samba PDC write-access issue
 
Quote:

[%U];;<=User share name
comment = Home Directory
writable = yes
writelist = achery
path = /home/netusers/%U
guest ok = yes
;; valid users = %U
;; create mask = 0775
;; directory mask = 0750 [/B]
Try
Code:

[homes]
  comment = Home Directories

;; means only user see his own share
  browseable = no
;;
  writable = yes

;; worth to do set also:
  dos filetime resolution = yes
  dos filetimes =yes

This share is more natural for smb.conf and sets the correct rights for user.

NetAX 05-07-2004 10:20 PM

Thanx for the input dorian33, i dont think i tried the dos filetime options. I'll let you know how it tuns out.

NetAX 05-08-2004 10:42 PM

Alright i found the problem. It was a file permissions issue. The owner was set to "root". So i found a folder that was for users. i put in my smb.conf and tried saving it and it worked.

The problem i am having now is I cannot properly configure the folder i want to share for read-write or change the owner. When I type the command:

set facl -m user:jane:rwx, group:netusers:rwx /home/netusers

i get a reply telling me that the directory does not exist. Please reply if you have any input or info on how i can set the right acess permissions.


All times are GMT -5. The time now is 11:25 PM.