Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba Write Access, but no Read?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Wed Apr 27, 2005 3:40 am    Post subject: Samba Write Access, but no Read? Reply with quote

I have a network of about six computer, and my system is the only linux box. I have samba up and running, and if the remote computers have a login on my computer, they can see my computer in network neighbourhood.

One computer with the username Mrscience, for example, can see his home directory and the server's public directory, which I share. However the computer cannot read any files in the directory. They may write, but not read, even though webmin says they have full read/write support. And all users can use my printer.

This happens for every user, here is my smb.conf:

Code:

[global]
        log file = /var/log/samba/log.%v
        guest account = samba
        load printers = yes
        printer = EpsonStylus
        socket options = TCP_NODELAY SO_RCVBUF=8663 SO_SNDBUF=8662
        write list = Mrscience,Kevins-computer,@users
        vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
        vfs object = vscan-clamav
        force group = users
        deny hosts = 0.0.0.0/0
        interfaces = lo eth1
        public = yes
        allow hosts = 127.0.0.1 192.168.0.1/24
        netbios name = AlexsComputer
        server string = Samba Server
        printing = cups
        delete readonly = yes
        path = /home
        workgroup = WORKGROUP
        os level = 20
        comment = Home
        auto services = print$ EpsonStylus printers
        valid users = Kevins-computer,Mrscience,@users
        security = user
        bind interfaces only = yes
        max log size = 50

[print$]
comment = Printer Drivers
path = /etc/samba/printer
guest ok = yes
browseable = yes
read only = yes
write list = alex,root

[EpsonStylus]
        printer = EpsonStylus
        comment = Epson Stylus Photo 700
        printable = yes
        writeable = yes
        path = /var/spool/samba
        printer admin = alex,root

[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
printer admin = alex,root

[public]
        delete readonly = yes
        writeable = yes
        path = /home/alex/samba
        force group = users
        force user = Mrscience
        comment = Public Files
        user = Kevins-computer,Mrscience,@users
        create mode = 0766

[homes]
        valid users = %S,Kevins-computer,Mrscience,@users
        writeable = yes
        user = Kevins-computer,Mrscience,@users
        path =


I see writeable = yes, but there is nothing on readable! How can I give Kevins-computer and Mrscience full read support?
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Wed Apr 27, 2005 4:12 am    Post subject: Reply with quote

Check your /var/log/samba/log.smbd file... it will display any and all errors and is a good place to start looking.

Have you tried 'browseable = yes' yet?
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Wed Apr 27, 2005 3:55 pm    Post subject: Reply with quote

that log file says the same thing over and over:
Code:

 Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/04/20 18:00:02, 0] smbd/server.c:main(760)


Setting browseable didnt help.
Back to top
View user's profile Send private message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Wed Apr 27, 2005 10:17 pm    Post subject: Reply with quote

No help?
Back to top
View user's profile Send private message
yaneurabeya
Veteran
Veteran


Joined: 13 May 2004
Posts: 1754
Location: Seattle

PostPosted: Thu Apr 28, 2005 11:27 am    Post subject: Reply with quote

Hmmm... now that I think about it I vaguely remember an ftp setup similar to this (write without a read reply). Are you sure the Windows machine isn't using cifs? Also, what about your nmbd log?

So, another thing too... you can access mr-science's computer from your gentoo machine, correct?

Furthermore, when you write does it give you a permission denied message in the logs?

And finally, try moving this around in your [global] area:

allow hosts = 127.0.0.1 192.168.0.1/24 #why would you want localhost access???? and if you're in a private network you should be fine if you removed the deny hosts line... unless you have a huge _set_ of private networks that you are connected to...
deny hosts = 0.0.0.0/0
#path = /home <- global shouldn't have a path...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum