LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-06-2011, 06:34 AM   #1
cnt
LQ Newbie
 
Registered: Aug 2011
Location: cg,india
Posts: 20

Rep: Reputation: Disabled
samba file permission & build_sam_account issue in samba


iam suffering a strange issue with mapping win user and samba file server ....
1> i created same account name & passwrd as window in samba server.and shared home dir of all user with permission
chmod 755 dir

i mapped Mydoc of win user with server to save their data in server.win user will save data in mydoc which get sync with server so data get saved in server.

with some win user share file permision is working file.means they cannot access other samba sharing dir.but some user after giving permission 755 can also access each other shared dir of samba server.this happeing with 10 user among 30....not all user this 10 user can access their data itself.

question is why? when i had given same permission to all shared dir.


2> when i checked on "samba user" on samba server setting to add user it shows "build_sam_accounts" in list of "Samba users" in CGI .

i searched and got pdbedit -L command

it show so many

"build_sam_account: smbpasswd database is corrupt! username [user] with
uid [uid] is not in unix passwd database!"


i check and commeted those user having error in /etc/smbpasswd

now "build_sam_account" user from server user not showing in samba user list

but user is still accessing other account...

what should i do..so that user can't access dir
 
Old 08-09-2011, 01:47 AM   #2
cnt
LQ Newbie
 
Registered: Aug 2011
Location: cg,india
Posts: 20

Original Poster
Rep: Reputation: Disabled
i did google,bt still having problem
 
Old 08-09-2011, 03:38 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Please use correct punctuation and spelling on your posts. I was not able to understand what your problem is.

You may want to post your smb.conf file (in [ code ] blocks). There are different databases which might be used depending on how samba is configured. Did you run smbpasswd to create Linux samba users for each Windows user?

If access is denied for some users, monitor the samba logs while attempting access. You may get better details on the problem.
Also check you smb.conf file. It may also block access to some services to some users.
 
Old 08-10-2011, 12:58 AM   #4
cnt
LQ Newbie
 
Registered: Aug 2011
Location: cg,india
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
Please use correct punctuation and spelling on your posts. I was not able to understand what your problem is.

You may want to post your smb.conf file (in [ code ] blocks). There are different databases which might be used depending on how samba is configured. Did you run smbpasswd to create Linux samba users for each Windows user?

If access is denied for some users, monitor the samba logs while attempting access. You may get better details on the problem.
Also check you smb.conf file. It may also block access to some services to some users.


i didnot find on my both server
root@localhost /]# cat ~/bin/man2kindleDX
cat: /root/bin/man2kindleDX: No such file or directory
 
Old 08-10-2011, 02:08 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
Originally Posted by cnt View Post
i didnot find on my both server
root@localhost /]# cat ~/bin/man2kindleDX
cat: /root/bin/man2kindleDX: No such file or directory
what relevance has that to the price of fish? Or this thread?
 
Old 08-10-2011, 02:19 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The script is below that line. It is my signature, not part of a post.
 
  


Reply


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
samba and file create permission noir911 Linux - Server 1 04-02-2009 09:17 AM
Giving file permission using SAMBA SBN General 0 10-24-2007 01:23 AM
Permission issue when accessing share using Samba hishii Linux - Software 4 01-02-2006 12:01 AM
Samba share permission issue cbekannan Linux - Security 4 03-11-2005 04:52 AM
SAMBA File Permission vcheah Linux - Software 1 11-27-2002 12:29 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration