LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Access rights from Windows vs. access right from the shell (https://www.linuxquestions.org/questions/linux-server-73/access-rights-from-windows-vs-access-right-from-the-shell-886306/)

Uncle Hildegard 06-14-2011 12:04 PM

Access rights from Windows vs. access right from the shell
 
Hi all,

just in case my first post is a stupid question - please bear with me, I'm still learnig... ;-)

I've set up a fileserver running Debian Lenny with Samba 3.2.5.
Things work fine so far but I experience different behaviour of some shared folders when a user accesses them from the shell or from Windows (XP/2000).
Example:
There's a user 'karl' and a directory /home/data/test.
karl is the owner of the directory and his access rights are set to "rx". On the shell I can copy and delete files to /home/data/test as expected but when I try this from Windows it says "Access is denied". From Windows it only works when the user-rights are set to "rwx".

Can someone explain why the behaviour is different?
Is it probably a setting in the smb.conf that I've done wrong?

Would be great if someone had an explanation.


Thanks in advance!
Uncle Hildegard

Skaperen 06-14-2011 12:18 PM

What is the FULL permission flags of the file and the parent directory? There are 3 levels of them, and maybe one of the others is being used. A file might have "-rwxrwxrwx" or the safer "-rw-r--r--". Can you show the exact output of "ls -dl . <filename>" (yes, with the "." as shown with spaces around it, to show the dorectory), from the shell, for that file?


All times are GMT -5. The time now is 03:28 AM.