LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux client accessing Samba Server (https://www.linuxquestions.org/questions/linux-networking-3/linux-client-accessing-samba-server-230085/)

waljure 09-13-2004 10:40 AM

Linux client accessing Samba Server
 
Hi,

I have a trouble with permission when I access a Samba Share from my Linux Box.

Samba Server
Version = 3.0.6
Security = ADS
Winbind = No

Linux Client
Version = 3.0.6
Security = ADS
Winbind = Yes

My W2k and XP users can access with the right permissions the Samba Share. The Samba Server has per ADS user a local user with the same username.

When I access the share from Linux I notice that owners ID belong to the local user from the Samba Server and not to the winbind id assign in my Linux Client.

When I write smb://sambaserver/share in Konqueror it is works perfectly.

To mount the share I have used uid,gid,fmask,dmask,username parameters in the smbmount and mount commands but it has not worked.

I can mount and work fine in my Linux Client with Windows Share.

I open to ideas,

Regards,

Wilmer Aljure
Colombia

5tonedSidney 06-22-2005 02:27 AM

I have the same problem
 
I have exactly the same problem.

Server runs RH7.2
Windows Xp can access the share perfectly i.e. full permissions.

Linux FC2 can read the share, but not write to it - EXCEPT through konqueror (I only tried that after reading your post, thanks)

If I login to the server directly (from any machine obviously), I have the correct permissions.

When I browse current connections on the server (through Webmin) I can see connections from both the Windows machine, and the FC2 machine - and they're both using the same user account - but Windows has write permission. Odd huh?

The last 2 points above make me think this is something wrong on the FC2 machine. BTW, the root account on FC2 does get write access (only user accounts are affected), which kinda rules out a "software capability" issue.

All help appreciated,
Sid

5tonedSidney 06-22-2005 09:03 PM

Small update
 
Perhaps the problem is caused 'cos the mount point gets owned by root when the share is mounted (even though it was previously owned by the user account) and therefore user accounts cannot write to it.

But how can I fix that?

Once mounted, even root cannot reassign ownership or alter permission's!

RoofRabbit 06-23-2005 01:06 AM

On my server, I have all the shared drives read/writable by everyone (I have Samba set to restrict access to the drives to my local lan only). Even though the drives are owned by root, all can write to them wether from a win pc or a linux pc.

5tonedSidney 06-25-2005 07:20 PM

Yippee Solved!!
 
OK, the problem was caused by root taking ownership of the mount point.

To avoid that I needed to run the mount command from the user account, which is not allowed by default.

So a quick: chmod u+s /usr/bin/smbmnt

The user account can then mount the share and all permissions are good.

Now I just need to figure how to get automount to work the same way.


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