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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-22-2007, 10:01 PM
|
#1
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Rep:
|
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.
|
|
|
10-22-2007, 10:05 PM
|
#2
|
Member
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139
Rep:
|
Hi! Try to see the logs and see what's going on.
|
|
|
10-22-2007, 10:27 PM
|
#3
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Original Poster
Rep:
|
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.
|
|
|
10-22-2007, 10:40 PM
|
#4
|
Member
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139
Rep:
|
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.
|
|
|
10-22-2007, 10:55 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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?
|
|
|
10-22-2007, 10:58 PM
|
#6
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Original Poster
Rep:
|
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...
|
|
|
10-22-2007, 11:02 PM
|
#7
|
Member
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139
Rep:
|
Could you post your smb.conf here too?! And please speak in English if you want other members here to help you.
|
|
|
10-23-2007, 12:19 AM
|
#8
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Original Poster
Rep:
|
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
|
|
|
10-23-2007, 12:21 AM
|
#9
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Original Poster
Rep:
|
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..
|
|
|
10-23-2007, 12:50 AM
|
#10
|
Member
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139
Rep:
|
Quote:
Originally Posted by webb.ryan
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.
|
|
|
10-23-2007, 02:51 AM
|
#11
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Original Poster
Rep:
|
Quote:
Originally Posted by yongitz
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!
|
|
|
10-23-2007, 04:34 AM
|
#12
|
Member
Registered: Nov 2005
Location: Davao City, Philippines
Distribution: RHEL, CentOS, Ubuntu, Mint
Posts: 139
Rep:
|
Code:
ls -l /root/Desktop/WST-FileCabinet
do the above code and paste here the result.
|
|
|
10-23-2007, 04:56 AM
|
#13
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
10-23-2007, 05:10 AM
|
#14
|
Member
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37
Original Poster
Rep:
|
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'?
|
|
|
10-23-2007, 05:15 AM
|
#15
|
Member
Registered: Oct 2006
Location: Bacolod, Philippines
Distribution: Slackware 12
Posts: 62
Rep:
|
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 09:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|