public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] weird samba problem
@ 2005-09-24 12:41 Red
  2005-09-24 22:48 ` gentuxx
  0 siblings, 1 reply; 3+ messages in thread
From: Red @ 2005-09-24 12:41 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i tried to setup samba, but i just can't get it to work right. i can
write files - but i can't read them ?!?

please help!!!

some example of my problem:

red@redworkstation ~ % smbmount //silverserver/public /home/red/public
Password:
red@redworkstation ~ % ls -l /home/red/public
total 12
- -rwxr-xr-x  1 red users 2 Sep 24 14:25 Textdatei
- -rwxr-xr-x  1 red users 4 Sep 24 14:27 bla
- -rwxr-xr-x  1 red users 4 Sep 22 18:24 test
red@redworkstation ~ % echo "foo" >> /home/red/public/testfile
red@redworkstation ~ % ls -l /home/red/public
total 16
- -rwxr-xr-x  1 red users 2 Sep 24 14:25 Textdatei
- -rwxr-xr-x  1 red users 4 Sep 24 14:27 bla
- -rwxr-xr-x  1 red users 4 Sep 22 18:24 test
- -rwxr-xr-x  1 red users 4 Sep 24 14:31 testfile
red@redworkstation ~ % cat /home/red/public/testfile
cat: /home/red/public/testfile: Permission denied



my smb.conf:

# Samba config file created using SWAT
# from 192.168.0.101 (192.168.0.101)
# Date: 2005/09/24 14:24:27

# Global parameters
[global]
        workgroup = SAMBA
        server string = Samba Server %v
        interfaces = lo, eth0
        bind interfaces only = Yes
        guest account = samba
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = cups
        wins support = Yes
        vscan-clamav:config-file = /etc/samba/vscan-clamav.conf
        guest ok = Yes
        hosts allow = 127.0.0.1, 192.168.0.
        hosts deny = 0.0.0.0/0
        vfs objects = vscan-clamav

[print$]
        comment = Printer Drivers
        path = /etc/samba/printer # this path holds the driver structure
        write list = root

[HPLJ1100]
        comment = HP LaserJet 1100 Network Printer
        path = /var/spool/samba
        printer admin = root
        printable = Yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        printer admin = root
        printable = Yes
        browseable = No

[public]
        comment = Public Files
        path = /mnt/files/shares
        valid users = red
        admin users = root, red
        read list = red
        write list = red
        read only = No
        create mask = 0766
        directory mask = 0777

[homes]
        comment = Home Directories
        path = /home/%u
        read only = No
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDNUl+146cP2GmnVMRAoyQAJ9YzenR74ExrMwOpA4WnhcbSFvrcwCeM+TO
k0tNBNMgIuHAzCTN8fqjthU=
=GP3y
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] weird samba problem
  2005-09-24 12:41 [gentoo-user] weird samba problem Red
@ 2005-09-24 22:48 ` gentuxx
  2005-09-25  2:17   ` Red
  0 siblings, 1 reply; 3+ messages in thread
From: gentuxx @ 2005-09-24 22:48 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Red wrote:

> i tried to setup samba, but i just can't get it to work right. i can
> write files - but i can't read them ?!?
>
> please help!!!
>
> some example of my problem:
>
> red@redworkstation ~ % smbmount //silverserver/public /home/red/public
> Password:
> red@redworkstation ~ % ls -l /home/red/public
> total 12
> -rwxr-xr-x 1 red users 2 Sep 24 14:25 Textdatei
> -rwxr-xr-x 1 red users 4 Sep 24 14:27 bla
> -rwxr-xr-x 1 red users 4 Sep 22 18:24 test
> red@redworkstation ~ % echo "foo" >> /home/red/public/testfile
> red@redworkstation ~ % ls -l /home/red/public
> total 16
> -rwxr-xr-x 1 red users 2 Sep 24 14:25 Textdatei
> -rwxr-xr-x 1 red users 4 Sep 24 14:27 bla
> -rwxr-xr-x 1 red users 4 Sep 22 18:24 test
> -rwxr-xr-x 1 red users 4 Sep 24 14:31 testfile
> red@redworkstation ~ % cat /home/red/public/testfile
> cat: /home/red/public/testfile: Permission denied
>
What are the NT file permissions of the share you're trying to mount?
You might also want to check the share permissions.  Depending on
which Windows OS you're mounting from, they may be different.  If I
remember correctly, NT permissions override share permissions.


[ ... snip samba.conf ... ]
- --
gentux
echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'

gentux's gpg fingerprint ==> 34CE 2E97 40C7 EF6E EC40  9795 2D81 924A
6996 0993
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDNdfYLYGSSmmWCZMRAi94AJ9NnZVt40wrlkPV7RINtGwXdNaVtgCg184K
EDF7dSDetR8+h4c+9bkboDk=
=sLVi
-----END PGP SIGNATURE-----

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] weird samba problem
  2005-09-24 22:48 ` gentuxx
@ 2005-09-25  2:17   ` Red
  0 siblings, 0 replies; 3+ messages in thread
From: Red @ 2005-09-25  2:17 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gentuxx wrote:
> 
> What are the NT file permissions of the share you're trying to mount?
> You might also want to check the share permissions.  Depending on
> which Windows OS you're mounting from, they may be different.  If I
> remember correctly, NT permissions override share permissions.

i dont have windows machines includet yet. i just want to try it from my
pc's first, which both are runnung gentoo.

permissions of the directory:
ls -l /mnt/files/
drwxr-xr-x  2 red  users   216 Sep 24 14:31 shares

no acl's setup yet either.

any ideas?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDNgjH146cP2GmnVMRAquiAJ92PJmukC26BVHjoR457hntQ4sDLwCeLSfr
vTRIFmZPpd7B7MrnGfxLdvs=
=JPK4
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-25  2:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-24 12:41 [gentoo-user] weird samba problem Red
2005-09-24 22:48 ` gentuxx
2005-09-25  2:17   ` Red

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox