LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-13-2004, 10:40 AM   #1
waljure
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
Unhappy 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
 
Old 06-22-2005, 02:27 AM   #2
5tonedSidney
LQ Newbie
 
Registered: Aug 2004
Location: Sydney
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
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
 
Old 06-22-2005, 09:03 PM   #3
5tonedSidney
LQ Newbie
 
Registered: Aug 2004
Location: Sydney
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
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!
 
Old 06-23-2005, 01:06 AM   #4
RoofRabbit
Member
 
Registered: Mar 2004
Location: Lenoir, NC USA
Distribution: Mandrake 10.2
Posts: 129

Rep: Reputation: 15
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.
 
Old 06-25-2005, 07:20 PM   #5
5tonedSidney
LQ Newbie
 
Registered: Aug 2004
Location: Sydney
Distribution: Redhat 8.0
Posts: 8

Rep: Reputation: 0
Smile 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.
 
  


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
Accessing Linux server from Windows client - Can't get it to work rixits Linux - Networking 2 01-18-2005 03:02 PM
How to make Samba server authenticate Linux client? Niceman2005 Linux - Networking 1 11-27-2004 02:35 PM
error accessing samba server from smb client MichaelVaughn Linux - Software 1 04-30-2004 01:01 PM
Samba printing: Linux Client to Win2000 Server GutterBall Linux - Networking 3 10-23-2003 04:44 PM
Accessing Linux from Windows thru Samba Server jeys Linux - Software 1 01-17-2003 03:43 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration