LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permissions differ depending is SMB is used or not (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-differ-depending-is-smb-is-used-or-not-278875/)

P_Ko 01-17-2005 11:18 AM

Permissions differ depending is SMB is used or not
 
Dear Sir,

I'm trying to use My Mandrake 10.1 (Discovery) desktop diskspace as back-up for my wife's laptop. I do have a problem with permissions, Help someone.

1. I created a linux user for my wife.
useradd honey
passwd honey

2. I created a folder honey's back-up. I was user honey then

3. I checked the permissions - anyony can do everything on that folder. So for user,group and world.

4. The laptop did find the workgroup and Linux host (Mandrake 10.1).

5. It is possible to view the back-up folder from the laptop but is is not allowed to write to back-up folder.

6. I used smb on the Linux host and the folder permissions do not allow writing to the folder.

7. It looks like to me that there are two different sets of permissions to change and write depending on how the folder is accessed - localhost or smb.

My wife is not making back-ups because I cannot fix a write permission over smb? Someone who knows? I have only used KDE not thecommand line interpreter, if that is needed what is the command?

All the Best,
P_Ko

Tinkster 01-17-2005 11:35 AM

Yes, there's a difference between perms between
local file-system and samba.

If you need to write via SMB have a look at the
settings you gave the directory honey (or all of
home for that matter) in smb.conf and also look
at your samba logs...


Cheers,
Tink

rtspitz 01-17-2005 05:14 PM

if you want a shared samba folder that EVERYONE (world) can use without a password use this in your smb.conf:

Code:

[share name]
        path = /home/myfolder
        guest ok = yes
        read only = no

make sure to enable filesystem access accordingly with chmod.

if you'd like to have a protected folder you need to setup smbpasswd with a username + password, the user must have a linux account

smbpasswd -a honey

and use this:

Code:

[share name]
        path = /home/myfolder
        guest ok = no
        read only = no
        valid users = honey



All times are GMT -5. The time now is 11:19 PM.