I am trying to get samba to work properly... I have a "Movies" share (//server/Movies), I want only root account to be able to upload and delete. Guest can view "Movies" share without password/login but they cant delete/update (only view).

[Movies]
        path = /mnt/user/Movies
        browsable = yes
        public = yes
        writable = no
        write list = root
        guest ok = yes

I can access to Movies share as guest but when I try to add new file I get an error saying: "You need permission to perform this action"

I expected username/password to popup but it didn't, how to fix this?

link|improve this question
feedback

2 Answers

Nothing to do with Samba, I'm afraid. You already authenticated as Guest from the Windows machine. To log in as root try to map the disk drive. That should overwrite authentication.

link|improve this answer
The mapping a drive as another user was a problem a few years ago with Samba. I.E. a station/host could only use one set of credentials ... the ones you logged in with. Has this problem been fixed? If not then then the only solution would be to logout and then login as root to gain the root privs. – mdpc Jul 28 '11 at 2:17
It doesn't have to be Samba. You cannot log in to the same smb machine with more than one set of credentials. – R.Starikov Jul 28 '11 at 4:33
I can access to /mnt/user/Movies without credentials... that work fine.. when I accept to copy file or write - expected credentials to popup but it did not.. how to fix this? – user88432 Jul 28 '11 at 9:25
To R. Starikov...what I mean is that a windows workstation already mapped to a samba share was unable to map another share on that same host using a different username which is an option on either net use or when mapping a drive via the file explorer. – mdpc Jul 28 '11 at 22:59
feedback

When you initially access (map/mount/...) the share, you provide a username. Any further access is then performed with this username. To change the account you would need to stop the connection and restart the access.

The popup privilege-escalation pop-up you think of: here is no such functionality inside Windows.

Sorry.

BTW: do you know that you can map Windows usernames to Linux/Samba usernames and that it is not a good idea to give someone root access via Samba?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.