Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
05-06-2004, 10:20 PM
|
#1
|
Member
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147
Rep:
|
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
|
|
|
05-07-2004, 12:32 PM
|
#2
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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.
|
|
|
05-07-2004, 10:20 PM
|
#3
|
Member
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147
Original Poster
Rep:
|
Thanx for the input dorian33, i dont think i tried the dos filetime options. I'll let you know how it tuns out.
|
|
|
05-08-2004, 10:42 PM
|
#4
|
Member
Registered: Mar 2004
Location: Boston, MA
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147
Original Poster
Rep:
|
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 06:59 PM.
|
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
|
|