LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2007, 10:01 PM   #1
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Rep: Reputation: 15
Exclamation 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.
 
Old 10-22-2007, 10:05 PM   #2
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
Hi! Try to see the logs and see what's going on.
 
Old 10-22-2007, 10:27 PM   #3
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
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 ^^.

Last edited by webb.ryan; 10-22-2007 at 10:29 PM.
 
Old 10-22-2007, 10:40 PM   #4
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
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!

Last edited by yongitz; 10-22-2007 at 10:42 PM.
 
Old 10-22-2007, 10:55 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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?
 
Old 10-22-2007, 10:58 PM   #6
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
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...
 
Old 10-22-2007, 11:02 PM   #7
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
Could you post your smb.conf here too?! And please speak in English if you want other members here to help you.
 
Old 10-23-2007, 12:19 AM   #8
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
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
 
Old 10-23-2007, 12:21 AM   #9
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
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..
 
Old 10-23-2007, 12:50 AM   #10
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
Quote:
Originally Posted by webb.ryan View Post
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?

Last edited by yongitz; 10-23-2007 at 12:52 AM.
 
Old 10-23-2007, 02:51 AM   #11
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yongitz View Post
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!
 
Old 10-23-2007, 04:34 AM   #12
yongitz
Member
 
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139

Rep: Reputation: 20
Code:
ls -l /root/Desktop/WST-FileCabinet
do the above code and paste here the result.
 
Old 10-23-2007, 04:56 AM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 10-23-2007, 05:10 AM   #14
webb.ryan
Member
 
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Original Poster
Rep: Reputation: 15
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'?
 
Old 10-23-2007, 05:15 AM   #15
dark_angel
Member
 
Registered: Oct 2006
Location: Bacolod, Philippines
Distribution: Slackware 12
Posts: 62

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


Reply

Tags
access, can, cant, directories, shared, windows


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
no access to shared directories with samba Meriadoc Linux - Networking 1 03-13-2005 06:42 AM
Windows XP/NTFS + Virtual PC/Mandrake + Samba = Shared Directories? IamI Mandriva 1 12-18-2004 06:06 PM
Can't acess directories shared by Samba in windows XP vador Linux - Networking 4 10-29-2004 04:06 PM
Samba 3: Can't write to shared directories from Windows robintw Linux - Networking 10 07-31-2004 09:13 PM
Access Shared Directories gotmonkey Linux - Networking 5 04-15-2004 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 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