LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-23-2004, 07:48 PM   #1
longtex
Member
 
Registered: Aug 2004
Location: Texhuahua
Distribution: RedHat 6,7,9,EL; SuSE 9.2 Pro, Knoppix 3.4/.7/.9, Fedora Core 4
Posts: 87

Rep: Reputation: 15
Samba client setup help


Server is RH 9.0, clients are W98, XP, RH9.0

Windoze clients are okay. RH clients show the problem.


On client, login as root, and mount a server's share:

mount -t smbfs -o username=adam,password=bar //192.168.0.23/stores /mnt/server

cd /mnt/server

ls -al

drwxr-xr-x 1 root root 4096 Sep 23 10:50 .
drwxr-xr-x 1 root root 4096 Sep 19 07:33 . .

touch fromroot

ls -al

drwxr-xr-x 1 root root 4096 Sep 23 10:50 .
drwxr-xr-x 1 root root 4096 Sep 19 07:33 . .
rwxr-xr-x 1 root root 4096 Sep 23 10:53 fromroot


On the client, exit and login as foo. The share is still mounted, but you can unmount and re-mount it if you want - foo is a member of group root and also a sudoer.

Either way, try to create a file:

cd /mnt/server

touch fromfoo

touch: creating `fromfoo': Permission denied.



Well, sure, that makes sense, after all the directory is owned by root, and it's 755, so only root can write on it...

But, does the directory really belong to root? The server doesn't think so, because if you look at that directory on the server (instead of from the client), you see:

drwxrwxrwx 8 foo managers 4096 Sep 23 10:50 /usr/data/stores


Now, on the client, the directory /mnt/server IS owned by foo, with permissions 777... at least, until the mount, and then it changes to being owned by root with permissions 755, hence root can create a file but foo cannot.

Is this caused by the serve or the client? I'm inclined to believe it's the client, because we CAN create files from the Windoze clients.

What setup on server and/or client do we need in order to be able to see the "real" permissions - or if we can't do that, what do we do other than being root to be able to create files on the server's share?
 
Old 09-23-2004, 10:57 PM   #2
longtex
Member
 
Registered: Aug 2004
Location: Texhuahua
Distribution: RedHat 6,7,9,EL; SuSE 9.2 Pro, Knoppix 3.4/.7/.9, Fedora Core 4
Posts: 87

Original Poster
Rep: Reputation: 15
I think I've solved this one... or at least found a workaround

mount -t smbfs -o username=adam,password=bar,uid=foo,gid=managers //192.168.0.23/stores /mnt/server

This doesn't fix the permissions, but at least it lets foo own it
 
  


Reply



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
How to setup samba client to use plain passwords pinknick Linux - Networking 3 11-30-2005 05:45 PM
samba client freezes when samba server goes down timcharper Linux - Networking 1 08-22-2005 10:29 PM
Samba: W2K client OK, XP client hangs Tim Green Linux - Networking 4 08-10-2004 01:55 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Mandrake (Samba) Client Can't Connect To Samba Buick Linux - Networking 1 01-21-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:49 AM.

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
Open Source Consulting | Domain Registration