LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2006, 03:24 PM   #1
beikokutn
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
Samba sharing problem (user permission problem)


Hello. I am a programmer new to Linux operation, but I have been using PHP and MySQL. And I want to setup my testing host so that I can test my program with it, instead of hosts on the public web. So I installed Red Hat Linux 8.0 on a PC from scratch. It works just good as I was hoping, except file sharing.

I have been trying to map the drive to Linux host from my Windows XP PC. I made my user account with Linux which is same as Windows domain user name and password. Then, I opened "Samba Web Administration Tool" and I made a share for "/var/www/http" with shared name "www". I can map the drive successfully. But I can't modify files. I can't create new files either.

So I tried to put my user account with Linux to "root" group with "Red Hat User Manager". In that dialogue's "Group" tab, put a check next to "root" and set "Primary Group" as "root". And I still can't save files. When I logged on the Linux console with same user I have been trying from Windows, I cannot modify any files at "/var/www/http" directory either.

I can see all shared directories on the host from Windows XP PC. And I can see my "home" directory which I can modify and create files. I think I am missing very basic stuff. But if anyone can give me any hints, I would really appreciate.
 
Old 06-11-2006, 10:03 AM   #2
beikokutn
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you

But never mind. I formatted the hard disk and installed Fedora Core 4. And Samba administration is much easier, and I can modify files now.

It seems I need to follow steps to make Samba to work.

1. create a Linux user account
2. set workgroup name for Samba server
3. select Samba user from Linux users list and make Windows username/password
4. set shared folder
5. re-start "smb" service

I don't know which part I missed with Red Hat Linux 8. But I like Fedore Core 4 very much, because it's like Windows administration.

Last edited by beikokutn; 06-11-2006 at 10:11 AM.
 
Old 06-11-2006, 10:10 AM   #3
sachinapatil
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
what permission u given to share document it shouldn't less than 0660
 
Old 06-11-2006, 10:18 AM   #4
beikokutn
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
To sachinapatil,

I cannot go back to Red Hat Linux 8 now. But I did not know I need to set file/directory permission AND Samba permission separately. So I guess you are right, I probably forgot to set permissions. Thank you very much.
 
Old 03-11-2008, 05:55 AM   #5
mianmajidali
Member
 
Registered: Mar 2008
Posts: 38

Rep: Reputation: 15
hi

dear have u generated samba password against the shared user ?
 
  


Reply

Tags
samba



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 permission problem (probably) pingu Linux - Software 3 01-26-2010 01:23 AM
Samba - permission problem on multiple user share timmywo Linux - Software 1 08-06-2005 05:30 PM
Sharing a directory with a regular user (with write permission) Ironica Linux - Newbie 6 05-31-2004 11:27 AM
Problem when logging as a user (permission denied) Dartelin Linux - Newbie 3 05-03-2004 12:15 PM
sound device permission problem as user matjazk Slackware 5 01-31-2004 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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