LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2005, 07:03 PM   #1
ishcoleobo
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Rep: Reputation: 15
Samba Question


I have all of my shares on the Linux Box working in windows. But I have no write access to the folder from windows. In linux the user can write fine, but from windows they can't. I have the samba share set as writeable, and I even went as far as setting permissions on the folder to 777. Still not working. I'm ripping my hair out... anyone?
 
Old 12-04-2005, 09:05 PM   #2
openbysource
Member
 
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66

Rep: Reputation: 15
Hello friend,

Can you please let me know the directory permissions of the directory you have shared with samba.
For that issue this command on your linux system:

# ls -l <path with name of the directory shared>

And also the user with which you are accessing the directory on the other side.

Maybe I help you.
Thanks
Take Care
Be Open By Source
 
Old 12-05-2005, 06:26 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
First of all whether you have done chmod in recursive mode or not, coz in this case you have only write access to the root of that folder & not the sub-folders.

Also to mention do mention 'create mask' option in your smb.conf.

If you still didnt get it going.. Post the smb.conf configuration for that share only.

..amit..
 
Old 12-05-2005, 09:39 AM   #4
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
In fedora Core with KDE windows manager Control center there is an excellent graphical frontend for samba with almost all options. Check it out if u are finding it difficult from command line.

see screenshot:

http://img217.imageshack.us/img217/3069/samba5dy.jpg
 
Old 12-05-2005, 02:31 PM   #5
ishcoleobo
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I have tried setting it up manually AND with the GUI tool... neither will work. I will post the smb.conf when I get back home. I had this problem a long time ago. I haven't used Samba in a couple years... I think I need a refresher course.

I also gave 777 access to the main directory, for example... it is in /sambashares/russell

I gave both sambashares AND russell directories 777. I didn't plan on leaving it that way, I was going to work my way backwards to find them problem, but apparently I'm way off. I'll get back to you guys when I get home... thanks again.
 
Old 12-05-2005, 09:25 PM   #6
ishcoleobo
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
[russellsdir]
comment = Russell's
path = /sambashares/russell
valid users = russell
guest ok = no
writeable = yes
printable = no
create mask = 1775
 
Old 12-05-2005, 09:40 PM   #7
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
Try using the: force user = russell

otherwise if it still doesn't work then
use command:
# testparm -s /etc/samba/smb.conf

also 1 is sticky bit. That means the user can create and delete his/her own files only

on linux try service smb and nmb restart.

In windows client search for the Linux server instead of using my network place. try logging off and login again

check the samb log files in /var/log/samba

use the command:
# tail -f /var/log/samba/<log file name>

for better troubleshooting

also refer this doc if u can't fix and do from scratch:

just find samba string on this page:

http://www.linuxhomenetworking.com/
 
Old 12-06-2005, 05:15 AM   #8
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by ishcoleobo
[russellsdir]
comment = Russell's
path = /sambashares/russell
valid users = russell
guest ok = no
writeable = yes
printable = no
create mask = 1775
Can you post 'ls -l' for /sambashares & /sambashares/russell ?
 
Old 12-06-2005, 05:20 AM   #9
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Rep: Reputation: 15
set security level on share level
 
Old 12-06-2005, 09:56 PM   #10
ishcoleobo
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
/sambashares
total 8
drwxrwxr-x 2 russell russell 4096 Dec 5 20:53 russell
--------------------------------
/sambashares/russell
total0
 
Old 12-07-2005, 06:34 AM   #11
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Post [global] meta-service key-value pairs also from your smb.conf.
 
Old 12-07-2005, 12:04 PM   #12
ishcoleobo
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I have tried this with a bare minimum samba config. Just the essintials.... and it still won't work. The weird thing is that if I FTP to it, I have no problems uploading files, but Samba WILL NOT work for the life of me. I've configured Samba on several servers in the past and have never had this problem. The [global] settings are very basic, just a couple of items in there.
 
Old 12-07-2005, 12:49 PM   #13
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Hey dont get frustrated & cool down.. You know you are at right place. Someone sure gonna help you in this.

As on my part here i go :

AFAIK
in security = share
Windows machine only prompts for password & user id doesnt matter in this case.
So you should enter correct password as you have mentioned for samba to use on *nix box. But if you are using guest account.. there is no need of any user id on *nix box.

So try out this minimal configuration & get few on .(This is working.. i've tested)
smb.conf should look like...
-----------------
[global]
workgroup = <windows machine workgroup name>
# Even though its not necessary to have windows worgroup only.
netbios name = <samba-server-name-whch-wud-appear-in-netwrk-neigbourhood-of-XP>
security = share

[share-name]
path = /share-path
guest ok = yes
writable = yes
---------------------
chmod 777 /share-path

Thats it.

I've tested this configuration & it is working absolutely fine. Indeed i was able to create a new text file & wrote few lines to it too.

Now your turn to test this conf at your box.

..amit..
 
Old 12-08-2005, 11:29 AM   #14
ishcoleobo
LQ Newbie
 
Registered: Dec 2005
Posts: 27

Original Poster
Rep: Reputation: 15
When I first set that up, windows prompts for a user/pass, automatically puts "Guest" as the user, and nothing works as a password. As soon as I close the password window out... I get locked out completely. It now just says... "\\Samba server is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you ahve access permissions. The network path was not found."
 
Old 12-08-2005, 11:56 AM   #15
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by amitsharma_26
-----------------
[global]
workgroup = <windows machine workgroup name>
# Even though its not necessary to have windows worgroup only.
netbios name = <samba-server-name-whch-wud-appear-in-netwrk-neigbourhood-of-XP>
security = share

[share-name]
path = /share-path
guest ok = yes
writable = yes
---------------------
chmod 777 /share-path

Thats it.
With above configs & setup.. windows doesnt ask for any user & pass firstly.
I've tested that.

Can you please post your config ?
 
  


Reply



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
Samba Question cjstm Linux - Wireless Networking 3 12-16-2004 11:42 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba Question mccartam Linux - Networking 1 10-26-2003 10:44 PM
Samba Question? gsmonk Linux - Networking 4 07-20-2003 02:50 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:21 PM.

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