Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
|
12-04-2005, 07:03 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Rep:
|
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?
|
|
|
12-04-2005, 09:05 PM
|
#2
|
Member
Registered: Oct 2005
Location: Rajasthan
Distribution: RHEL 4 ES
Posts: 66
Rep:
|
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
|
|
|
12-05-2005, 06:26 AM
|
#3
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
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..
|
|
|
12-05-2005, 09:39 AM
|
#4
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
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
|
|
|
12-05-2005, 02:31 PM
|
#5
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
12-05-2005, 09:25 PM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
[russellsdir]
comment = Russell's
path = /sambashares/russell
valid users = russell
guest ok = no
writeable = yes
printable = no
create mask = 1775
|
|
|
12-05-2005, 09:40 PM
|
#7
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
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/
|
|
|
12-06-2005, 05:15 AM
|
#8
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
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 ?
|
|
|
12-06-2005, 05:20 AM
|
#9
|
Member
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75
Rep:
|
set security level on share level
|
|
|
12-06-2005, 09:56 PM
|
#10
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
/sambashares
total 8
drwxrwxr-x 2 russell russell 4096 Dec 5 20:53 russell
--------------------------------
/sambashares/russell
total0
|
|
|
12-07-2005, 06:34 AM
|
#11
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
Post [global] meta-service key-value pairs also from your smb.conf.
|
|
|
12-07-2005, 12:04 PM
|
#12
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
12-07-2005, 12:49 PM
|
#13
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
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..
|
|
|
12-08-2005, 11:29 AM
|
#14
|
LQ Newbie
Registered: Dec 2005
Posts: 27
Original Poster
Rep:
|
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."
|
|
|
12-08-2005, 11:56 AM
|
#15
|
Member
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777
Rep:
|
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 ?
|
|
|
All times are GMT -5. The time now is 10:11 PM.
|
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
|
|