Still can't write to a Win98 share! PLEASE HELP!
Dennis K Grow
dkgrow at mindspring.com
Sun Dec 30 15:55:35 GMT 2001
To mount windows shares on a linux box so the whole world can read/write:
smbmount //<windows share> /mnt/<point> -o username=root,password=<root
password>,gid=<user's group, if wanted>,fmask=0777
Put this is /etc/rc.d/rc.local
Also use a credentials file (0600), instead of exposing the root password.
see: man smbmount
Dennis
SnuggleB wrote:
> I've posted here with this problem before, and while several people DID try
> to help, nothing seems to work!
>
> Here's the situation (again):
>
> I have a Linux box (Mandrake 7.0) running Samba (2.0.6) compiled from
> source. I can mount/read/write the linux shares just fine, but when trying
> to write to my Win98 shares (which mount perfectly), I get "permission
> denied".
>
> This only happens for standard users. As root, I can
> read/write/execute/move/delete files with no problems whatsoever. As a
> standard user, I can only read files on the Win98 mounted shares.
>
> Yes, I'm mounting them with FULL permissions (on the Win98 side).
>
> PLEASE HELP!
>
> Here is a copy of my /etc/fstab, and a copy of my /etc/smb.conf if it
> helps...
>
> ============ /etc/fstab ============
> /dev/hda1 /boot ext2 defaults 1 2
> /dev/hda5 / ext2 defaults 1 1
> /dev/hda6 swap swap defaults 0 0
> /dev/hda7 /home ext2 defaults 1 2
> /dev/fd0 /mnt/floppy auto sync,user,noauto,nosuid,nodev,unhide 0 0
> none /proc proc defaults 0 0
> none /dev/pts devpts mode=0620 0 0
> /dev/cdrom /mnt/cdrom auto user,noauto,nosuid,exec,nodev,ro 0 0
>
> //mav/scott_pics /mnt/scott_pics smbfs guest,rw,fmask=0666,dmask=0777 0 0
>
> //mav/mav_z /mnt/mav_z smbfs user 0 0
> //mav/mav_cd /mnt/mav_cd smbfs ro,user 0 0
> //mav/html /mnt/html smbfs user 0 0
>
> ============ /etc/smb.conf ============
> [global]
> null passwords = yes
> log file = /var/log/samba/log.%m
> printcap name = /etc/printcap
> max log size = 50
> domain master = no
> dns proxy = no
> domain logons = no
> preferred master = no
> password level = 0
> encrypt passwords = no
> server string = Samba Server
> workgroup = MAVUS
> unix password sync = no
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> load printers = yes
> security = user
> writable = yes
> os level = 0
> dead time = 0
> wins support = no
> public = yes
> debug level = 0
>
> [mavus]
> comment = Mavus
> guest ok = yes
> create mode = 777
> directory mode = 777
> browseable = yes
> writable = yes
> path = /home/mavus
> public = yes
>
> [http]
> guest ok = yes
> comment = Local Web Interface
> create mode = 777
> directory mode = 777
> writable = yes
> browseable = yes
> path = /www/servers
> public = yes
>
> [homes]
> comment = Home Directories
> browseable = yes
> writable = yes
> public = no
> only user = yes
>
> [archives]
> comment = File Archives
> path = /home/archives
> guest ok = yes
> writable = yes
> browseable = yes
> public = yes
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> browseable = no
> guest ok = no
> writable = no
> printable = yes
>
> [temp]
> guest ok = yes
> comment = Temporary file space
> create mode = 777
> wide links = no
> directory mode = 777
> writable = yes
> path = /temp
> public = yes
>
> [cdrom]
> comment = CD-ROM Drive
> path = /mnt/cdrom
> read only = yes
> public = yes
> guest ok = yes
> browseable = yes
> writable = no
>
> [mavus]
> comment = Mav's Home
> path = /home/mavus
> read only = no
> public = yes
> guest ok = yes
> browseable = yes
> writable = yes
>
> [netlogon]
> ---
>
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.310 / Virus Database: 171 - Release Date: 12/19/01
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
--
Dennis K. Grow
RedHat 7.2 Kernel: 2.4.13 KDE: 2.2-10 ALSA: 0.5.11
11:20am up 34 min, 6 users, load average: 0.08, 0.11, 0.30
------------------------------------------------------------
More information about the samba
mailing list