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
What happens when you smbmount \\\\windows\\share as a regular user? What happens when you put a file from linux to windows? Any clues in your samba log file? Joel
I saw a little of this thread before, but can't say I followed it completely, so just ignore me if you haven't checked the following ... I can see from your smb.conf that you've set all the lights to green on the Samba side, but what about the actual Linux directory and file permissions? Remember that Samba cannot grant any privilege not granted by Linux, so you have to make sure you have directory/file permissions at least as open as 775 if everyone is part of the file/directory group, or 777 if you have public users who don't satisfy group membership. julian. ==============================At 02:51 AM 12/30/01 -0500, you 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=============================Julian A. Opificius. 802 Fawn Road, Elk River, MN 55330. Home: 763.441.1291, Cell: 763.360.5919 julianop@mninter.net ICQ: 3268206 ==============================
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 ------------------------------------------------------------
On Sun, 30 Dec 2001, SnuggleB wrote:> 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.If the same mount "instance" (no umounts or over-mounts) works for root but not for normal users then it is not a problem with permissions on the server side. Otherwise it is a common error as those permissions are not show on the linux side (and people make that mistake even when they say they don't ...) All accesses over a smbfs mount is done as the same windows user.> //mav/scott_pics /mnt/scott_pics smbfs guest,rw,fmask=0666,dmask=0777 0 0If you list the files in this dir, what are the permissions? It should work, unless 2.0.6 has some bug with fmask/dmask. Also check that /sbin/mount.smbfs and/or /sbin/mount.smb (just check all mount.smb* you can find) is a symlink to smbmount and not a script. (mount.smb shouldn't exist, mount.smbfs should) Before smbmount understood mount syntax people used scripts to map mount syntax to smbmount syntax.> //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 0These won't be accessible by anyone but the user that mounted them. And as the "user" keyword is currently not supported, only root can mount them. /Urban