LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 02-05-2012, 04:31 AM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 131

Rep: Reputation: 1
samba password protected share


hi,

I configured the samba server on rhel6. public server is working fine. but when it coming to private shate it's working. When i type \\servername on run it prompts for password but it doesnt work. it shows error box.says something like

"you might ahve no permissions to access resources contact admin...... multiple connections to server or shared resource by the same user using more than one username....."
my config file is as follows.

Quote:
[smb_share]
comment = private
path = /var/smb
public = no
valid users = manny
read only = no
security = user
server string = my samba
same error, if i change security to share and public to yes, it opens directly but password is not working.

i used following command also,

smbpass -a manny.

one thing i noticed is under /etc/samba i found only 3 files
  • lmhosts
    smb.conf
    smbusers

i never found smbpasswd file i dont know why.

please help me

thank you.
 
Old 02-05-2012, 08:20 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 393

Rep: Reputation: 37
Try disabling , SElinux or setting it to permissive.should work then.
 
Old 02-06-2012, 05:30 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,039
Blog Entries: 4

Rep: Reputation: 191Reputation: 191
You cannot see smbpasswd because you are using wrong command to assign password

Code:
#smbpasswd -a username
 
Old 02-06-2012, 09:49 PM   #4
shamantony
LQ Newbie
 
Registered: Feb 2012
Posts: 8

Rep: Reputation: Disabled
Samba server

In /etc/samba/smb.conf

[smb_share]
comment = private
path = /var/smb
public = no
valid users = user
readable = yes
writable = yes
browsable = yes
security = user
server string = my samba

*Note 'user' means username (eg: manny,jhon,....)

If the user is already existing you don't need to create user otherwise create users

#useradd 'username'

Setting samba password for users

#smbpasswd -a 'username' --it will prompt you to enter password

#smbpasswd -e 'username' --it enabling samba user

Setting permissions

#setfacl -m u:'username':rwx /var/smb

#chcon -Rt samba_share_t /var/smb

#service smb restart

sham_antony@aol.com

Last edited by shamantony; 02-06-2012 at 09:52 PM.
 
Old 02-07-2012, 03:26 AM   #5
rockstar05
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Rep: Reputation: Disabled
Hi,

Check the selinux policy otherwise change it to enforcing mode

it will work
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SAMBA sharing one no public folder password protected infoslaw Linux - Newbie 8 12-30-2011 04:07 AM
Samba password protected shared Folder Mrpeepers310 Linux - Networking 5 09-18-2010 10:04 AM
Un-Protected share on XP System wants password when accessed by linux thealmightyos Linux - Networking 16 03-27-2009 01:50 PM
Samba - Passwd protected share with Windows XP Home uhcafigdc Linux - Server 4 10-31-2008 10:38 AM
Samba share password? how? sys7em Linux - Security 3 11-09-2004 10:33 AM


All times are GMT -5. The time now is 08:45 PM.

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
Open Source Consulting | Domain Registration