LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   File Sharing through Linksys Router ??? (https://www.linuxquestions.org/questions/linux-networking-3/file-sharing-through-linksys-router-93215/)

olias 09-15-2003 08:59 PM

File Sharing through Linksys Router ???
 
Hi:

I searched for 2 hours and just got confused... please help me sort this out. :)

I have a Linksys BEFSR41 4-port router connected to a cable modem and 2 computers runing Mandrake 9.1 both happily connecting to the internet through the router. The router dynamically assigns ip addresses.

My /etc/sysconfig/network files looks like this...
Code:

HOSTNAME=olias
NETWORKING=yes
GATEWAY=192.168.1.1

And my /etc/hosts file looks like this...
Code:

127.0.0.1              localhost
These 2 files are the same on the other computer with the exception of 'HOSTNAME' where it = 'gecko'. I set a directory in the home folders as 'share' with SMB and I also setup the respective user accounts on the opposite machine. We can both see the other machine under LinNeighbourhood and we can mount the other's share folder. But when I try to copy a file to the mounted share folder I get ACCESS DENIED.

Thanks, Olias
_____________________________________
When will ever I stop being a nOOb :(

sewer_monkey 09-15-2003 11:30 PM

What does your smb.conf look like? It should be located in /etc/samba/smb.conf.

The issue you are experiencing is most likely due to a bad SAMBA configuration. The shares are not properly set up, or the permissions on the actual shared directories and files are not properly set.

For example: if the shared directory is owned by root and the "world" does not have write permissions to that directory, you will not be able to put anything into that directory through SAMBA.

If you show me your smb.conf file, I will be able to help you further. Good luck! ;)

olias 09-16-2003 05:38 PM

I feel bad posting this because it is obviously not set up yet. I'll read through the smb.conf(5) manual page and try to work through it. If you have any pointers, in the mean time, please post them. :)
Code:

[global]

 <snipped from eof...>
.
.
.
[OLIAS_SHARE]
  path = /home/olias/Share
  comment = /home/olias/Share
  public = yes
  guest ok = yes
  writable = no
  wide links = no

Thanks, Olias

reelwylde 09-16-2003 06:08 PM

It looks like the resolution could be as simple as changing the "writable" entry in smb.conf to yes.

Cheers,

olias 09-17-2003 07:00 PM

Yes... I feel silly. Tanks

sewer_monkey 09-17-2003 08:36 PM

Check the permissions nonetheless. Writable could be set to yes, but if the user accessing that share has no write permissions, you will still get that error. Check ownership and permissions in all cases.


All times are GMT -5. The time now is 06:48 AM.