LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2005, 12:18 PM   #1
P_Ko
LQ Newbie
 
Registered: Dec 2004
Location: Stockholm
Distribution: Mandrake 10.1 Discovery
Posts: 13

Rep: Reputation: 0
Question 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
 
Old 01-17-2005, 12:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 01-17-2005, 06:14 PM   #3
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
differ between proxysever and NAT vito_huang Linux - Networking 1 12-26-2004 02:56 AM
Assigning local permissions to imported SMB shares Ron Cook Linux - Networking 1 12-17-2004 06:12 AM
they do differ? [kernel in every distro] junkie101 Linux - Software 1 10-27-2004 09:16 AM
How does Fedora differ from RH9? Big Al Fedora 10 11-12-2003 11:13 AM
I can't compile any QT depending C++ application! Paulo Ges Programming 1 04-17-2003 05:11 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration