Re: Still can't network Linux and Windows



"LeIand C. Scott" <kc8ldo@xxxxxxxx> writes:

"Kari Hurtta" <hurtta@xxxxxxxxxxxxxxxxx> wrote in message
news:5dk689ccnj.fsf@xxxxxxxxxxxxxxxxxxxx
"LeIand C. Scott" <kc8ldo@xxxxxxxx> writes in comp.protocols.smb:


However, now I'm seeing that I can't write to the Linux shares from the
Windows box, can only read them, and just changing the Linux
permissions
(via chmod) does NOT solve this...the saga is not over yet!

Default for share (on smb.conf) is probably
writable = no

( 'writable' 'writeable' 'read only' are if I remeber correctly
esentially same option ('read only' is just negated.) )


I thought that chmod only changes the file permissions for users logged
directly in to the machine. File and printer sharing has to be setup
using
Samba if you want access using that method. Samba has it's own
permissions
you have to setup independent of the OS. On my system, FC3, I had to set
the
=======================================

No.

http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html#id2579902
quote:

| All access to UNIX/Linux system files via Samba is controlled by the
| operating system file access controls. When trying to figure out file
| access problems, it is vitally important to find the identity of the
Windows
| user as it is presented by Samba at the point of file access. This can
best
| be determined from the Samba log files.

So it is possible to have r-w-e permissions for local users on the machine
but when using Samba those same files can be read-only even if it's the same
user. That seems to be what I found when I set up my system. I do understand
the OS permissions always take precedence over anything that is setup by
Samba. So if the Samba user needs to have write permission then at least the
user account on the system has to let the user have the same rights for
those files. I found that out by copying some files, with root ownership
only, over to a regular user account to look at one point. I found that I
couldn't erase the files later using file sharing under Samba. I am still
new to the Linux system, I'm learning things everyday, so if I got something
wrong here I would like to know since it could be useful later. Constructive
comments are always welcomed.

Discussed on

http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html


There seems to be quite lot of strange things what samba does (and not
just doing it and let OS do permission checks.)

.



Relevant Pages

  • Re: FC3 - trying to join a Windows Workgroup
    ... >> difference between your SAMBA server and any Windows box on your network ... I have Windows 2003 servers that I'm trying to ... Share permissions!= filesystem permissions. ... give the TESTSHARE group rights to the share, ...
    (linux.redhat.misc)
  • Re: File compatibility issues with LAN drive
    ... Windows did not have a file "executable" flag, ... linux does. ... systems and NFTS file system permissions. ...
    (sci.electronics.design)
  • Re: ubuntu xp vmware cluster f...er...filesharing
    ... used VMware shared folders and SAMBA in the past with no problems. ... problem as I need to store all of my project files on XP because that's ... VMware shared folders do not preserve user ID and permissions of the ... Unix and Windows NT/XP is dramatically different. ...
    (Ubuntu)
  • Re: Problem with Google Mail and Ubuntu
    ... Whilst there have been some viruses written for Linux, ... way of accessing root permissions), is to enable root permissions to be ... virii can in Windows). ...
    (Ubuntu)
  • Re: PS3 MAME
    ... commands lide sudo this and nano that to be able to get what i want. ... which gives you root permissions. ... It is similar to the "Run as" command of Windows. ... Tired of Windows malware but fear to try out Linux? ...
    (alt.games.mame)