Coder Social home page Coder Social logo

Guest user about samba HOT 5 CLOSED

servercontainers avatar servercontainers commented on June 17, 2024
Guest user

from samba.

Comments (5)

MarvAmBass avatar MarvAmBass commented on June 17, 2024 1

good to know! have fun with the container :)

from samba.

MarvAmBass avatar MarvAmBass commented on June 17, 2024

I guess the user needs access permissions on the filesystem

I have some similar setup where I made the guest share read only. If you're logged in you have write permissions.

https://askubuntu.com/questions/88108/samba-share-read-only-for-guests-read-write-for-authenticated-users
This describes it pretty well 😊

from samba.

noaho avatar noaho commented on June 17, 2024

yeah.. The thing is all users have access to the share (read + execute)

For example I can run
docker exec -it --user nobody samba sh

cd /shares/sharename
ls

and see all the files..

For your working setup, did you have to assign the guest user to a particular user, or did the defaults work?

from samba.

MarvAmBass avatar MarvAmBass commented on June 17, 2024

My guest gets mapped to nobody.

I set my permissions on filesystem level accordingly
So there are files and documents which wouldn't be accessible by nobody e.g guest.

If I want to share files or whole shares I overwrite permissions and force groups on the samba config level.

You can also use nobody and remove others from writing in the share 🤔
With chmod 775 for example

from samba.

noaho avatar noaho commented on June 17, 2024

Thanks for your help!

I found the problem, apparently I can't use valid user in combination with guest ok, unless I add the guest users (eg nobody) to valid user.

EG, this works:
- SAMBA_VOLUME_CONFIG_sharename=[sharename]; path=/shares/sharename; valid users = user1, user2, nobody; read only = yes; write list = user1; guest ok = yes; browseable = yes

from samba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.