Accessing server share from Windows and Linux

Accessing server share from Windows and Linux

Post by Timur Aydi » Sun, 15 Jun 2003 02:19:59



Hi,

I want to have a shared directory, residing on a RH9 Server, to be
accessible by another Linux PC and a Windows XP PC. Obviously, I have
configured samba on the server machine and can access the shared
directory from windows. Once the shared directory is mapped to a
driver letter, it can be used just like a local harddrive.

However, when I mount that share to a local mountpoint on the linux
PC, writing to that shared directory is only possible when I am logged
in as root:

$ su
# mount -t smbfs -ousername=username,password=password //my.host.name/public /mnt/pub
# touch /mnt/pub/junk
# exit
$ touch /mnt/pub/shit
(This fails with a permission error)

I have tried changing the permissions of /mnt/pub as 0777, didn't
help.

Interestingly, if I connect to the public directory through nautilus:

smb://my.host.name/public

Then I can write to that directory.

Also, if I use smbclient, I can write to that directory.

However, I really need to access that directory through the mount
point, because when I want to edit a file on the shared directory, I
need to open that directory in my editor and want to save it back. It
should look like a regular directory so that I can use it like a local
directory and so that all my tools work on files that are in that
directory.

Any idea what the problem is?

--
Timur Aydin

 
 
 

Accessing server share from Windows and Linux

Post by Michael Heimin » Sun, 15 Jun 2003 01:58:13



> Hi,
> I want to have a shared directory, residing on a RH9 Server, to be
> accessible by another Linux PC and a Windows XP PC. Obviously, I have
> configured samba on the server machine and can access the shared
> directory from windows. Once the shared directory is mapped to a
> driver letter, it can be used just like a local harddrive.
> However, when I mount that share to a local mountpoint on the linux
> PC, writing to that shared directory is only possible when I am logged
> in as root:
> $ su
> # mount -t smbfs -ousername=username,password=password //my.host.name/public /mnt/pub
...
> Any idea what the problem is?

Sounds like permission/ownership on the mount point are wrong.

However you don't really want to use that, *nix system use NFS to share FS
over the LAN, there is for sure a NFS HOWTO waiting for you (www.tldp.org).

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM

 
 
 

Accessing server share from Windows and Linux

Post by Bob Hauc » Sun, 15 Jun 2003 03:08:14



> However, when I mount that share to a local mountpoint on the linux
> PC, writing to that shared directory is only possible when I am logged
> in as root:

Try using smbmount to mount it as the user who needs access instead of
as root.

--
 -| Bob Hauck
 -| To Whom You Are Speaking
 -| http://www.haucks.org/

 
 
 

Accessing server share from Windows and Linux

Post by Erik Saart » Sun, 15 Jun 2003 05:29:56


[snip]

Quote:> However you don't really want to use that, *nix system use NFS to share FS
> over the LAN, there is for sure a NFS HOWTO waiting for you (www.tldp.org).

IMHO nfs aint such an appealing solution if we're going to access files
both from windows and linux clients. Main problem is that there's no
easy, comfortable and flexible way to force group ownership (and rights)
on share basis. Yes, of course there's umask, chown, chgrp and cron on
top of that, but that's more of an ad hoc kind of remedy, especially
for non-* users. I guess ACLs might provide better solution, or
are there any other ways to handle this?

Erik

 
 
 

Accessing server share from Windows and Linux

Post by Antoine EMERI » Mon, 16 Jun 2003 03:03:14


Hi,

Most mounting operatin are permetted to the root user only (for security).

But if you want your mount to be permanrent, add the mount to your
/etc/fstab, and it will be mount at the server start.

Regards


> Hi,

> I want to have a shared directory, residing on a RH9 Server, to be
> accessible by another Linux PC and a Windows XP PC. Obviously, I have
> configured samba on the server machine and can access the shared
> directory from windows. Once the shared directory is mapped to a
> driver letter, it can be used just like a local harddrive.

> However, when I mount that share to a local mountpoint on the linux
> PC, writing to that shared directory is only possible when I am logged
> in as root:

> $ su
> # mount -t smbfs -ousername=username,password=password //my.host.name/public /mnt/pub
> # touch /mnt/pub/junk
> # exit
> $ touch /mnt/pub/shit
> (This fails with a permission error)

> I have tried changing the permissions of /mnt/pub as 0777, didn't
> help.

> Interestingly, if I connect to the public directory through nautilus:

> smb://my.host.name/public

> Then I can write to that directory.

> Also, if I use smbclient, I can write to that directory.

> However, I really need to access that directory through the mount
> point, because when I want to edit a file on the shared directory, I
> need to open that directory in my editor and want to save it back. It
> should look like a regular directory so that I can use it like a local
> directory and so that all my tools work on files that are in that
> directory.

> Any idea what the problem is?

 
 
 

1. Need help accessing shared files in window on Linux and windows printer on Linux.

1.) Hi guys I would like to know how I can view the shared folders in
windows on my Linux machine. I can see my shared Linux home directory on
windows but I can't access the shared windows folders on Linux or even see
them on my Linux box. How would I go about correcting this problem?

2.) Also how would I be able to print from Linux box onto my printer  (
Lexmark 2050 Color Ink Jet Printer ) on my windows machine ?

P.S. Thanks in advance.

--
My System Specs: http://www.anandtech.com/mysystemrig.html?rigid=13762

2. How to do 'for line in `cat file`; do' in bourne shell?

3. Can see Suse and Window server, but can't access SuSe shares

4. Services on MAC Dual G4 under Linux

5. Linux/Windows Networking and Access Sharing

6. pppd on Redhat6.1

7. Accessing Windows for Workgroups shared resources from Linux ???

8. EtherExpress PRO 100 driver: can anyone assist?

9. Accessing Window Shares from Linux ?

10. Accessing Windows 2000 shared drive from Linux

11. Access to Windows NT Share with Linux

12. How to access the shared files of Windows OS on my Linux platform?

13. Accessing an NFS-Share from Linux on W2K-Server