LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   windows can see shared directories, but cant access them (https://www.linuxquestions.org/questions/linux-newbie-8/windows-can-see-shared-directories-but-cant-access-them-593827/)

webb.ryan 10-22-2007 10:01 PM

windows can see shared directories, but cant access them
 
Hello,

I have problem with FilePermissions in Linux FedoraCore5.
I used the GUI tool (system-config-samba tool) and check the access to
'Visible' and 'Writable'.(I followed the tutorials..)

now when I try to access the linux thru \\107..(ip of linux)\share
from windows' run command, I can see all the shared directories but when try to open, it does not open..

If there's anybody who know about this, your help is greatly appreciated.:scratch:

yongitz 10-22-2007 10:05 PM

Hi! Try to see the logs and see what's going on.

webb.ryan 10-22-2007 10:27 PM

Salamat sa reply! san ko po un makikita kuya?
taga philippines ka pala...haha!
kasi..diba sa windows XP right click mo lang un tapos sharing tab tapos allow others to change network files dba?

This is reply to yongitz..

Help is still very much welcome ^^.

yongitz 10-22-2007 10:40 PM

Take a look at your samba logs.. you can find it, for example in my box at /var/log/samba/<ip_address_of_windows_machine>.log

e.g.
tail -f /var/log/samba/192.168.1.8.log (where 192.168.1.8 is the ip address of my windows machine accessing my samba share.)

Might as well post the logs here.


yep pinoy ako! WELCOME to LQ! :)

jschiwal 10-22-2007 10:55 PM

You may need to create the same user in Linux as you have in Windows with the same password. And then use the "smbpasswd" to add a samba user and password. Much depends on your smb.conf file. For example, are you using the default "security = user". Is this share public?

webb.ryan 10-22-2007 10:58 PM

mabuhay ang Pinoy! Thanks!

ito po ung log file...

[2007/10/23 11:44:30,0] smbd /Service. C:make_connection_snum(663)
'/root/Desktop/WST-FileCabinet' does not exist or permission denied when connecting to [WST-FileCabinet] error was permission denied.

good news po ba 'to? medyo malabo at hindi ko pa gets..kahapon lang ako gumamit ng linux =(

thanks po sa reply...

yongitz 10-22-2007 11:02 PM

Could you post your smb.conf here too?! And please speak in English if you want other members here to help you. :)

webb.ryan 10-23-2007 12:19 AM

to Yongitz,

here's my smb.conf..

[WST-FileCabinet]
comment = wst file cabinet
path = /root/Desktop/WST-FileCabinet
;writable = no
browsable = yes
valid users = ryan.webb

webb.ryan 10-23-2007 12:21 AM

to JSCHIWAL,

>>You may need to create the same user in Linux as you have in Windows >>with the same password. And then use the "smbpasswd" to add a samba >>user and password. Much depends on your smb.conf file. For example, >>are you using the default "security = user". Is this share public?

thanks for replying..

yes, I am using the default "security = user". the share is not public..

yongitz 10-23-2007 12:50 AM

Quote:

Originally Posted by webb.ryan (Post 2933343)
to Yongitz,

here's my smb.conf..

[WST-FileCabinet]
comment = wst file cabinet
path = /root/Desktop/WST-FileCabinet
;writable = no
browsable = yes
valid users = ryan.webb

The path line could be your problem, what is the permission for that directory and all its contents? (It could be on rare situations..)

Do you get access denied error in opening the files?

webb.ryan 10-23-2007 02:51 AM

Quote:

Originally Posted by yongitz (Post 2933370)
The path line could be your problem, what is the permission for that directory and all its contents? (It could be on rare situations..)

Do you get access denied error in opening the files?

YES I DID get an access denied error in opening my files!
i don't know the permission for my Directory(the problem ^^) I just checked the 'Writable' and 'Visible' in the GUI tool...
(system-samba-config..)

kuya Thank you very much for your continous support! Hope you wont change!:)

yongitz 10-23-2007 04:34 AM

Code:

ls -l /root/Desktop/WST-FileCabinet
do the above code and paste here the result.

jschiwal 10-23-2007 04:56 AM

You should not be sharing a directory in /root. Root is the administrator and no one else has the right to access it.
The problem is that this directory (WST-FileCabinet) is inside a directory you don't have permissions to enter (/root).

You can move the WST-FileCabinet directory elsewhere, such as maybe /home/WST-FileCabinet. For a public share, maybe /home/samba/WST-FileCabinet. Some people use /var/samba if the host is used predominately as a file server.

There is a Fedora Core RPM package called samba-doc, that supplies the book "Samba-3 by Example". It includes not only example smb.conf configurations but also shows you step by step how to create the directories being shared in the example including the directory permissions. For example, it this is a publicly read and writeable share, you will want to set the sticky bit.

webb.ryan 10-23-2007 05:10 AM

thanks to jschiwal and kuya yongitz!:)

to: JSCHIWAL

i see, I will try your suggestion right now..

to: kuya Yongitz

I will do the command and paste the results..actually with your previous reply, i came across ls -l command and chmod..

Anywayz, i will try your suggestions and let you know the results.
Thanks for helping me..

by the way, can I add you both to my 'Buddy List'?

dark_angel 10-23-2007 05:15 AM

may i suggest that you create an ordinary account for your daily work and not use the root account. using root is dangerous. use only root for administrative tasks in your system. good luck and welcome to linuxquestions.


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