Results 1 to 3 of 3
hi everyone I am new to samba, i created a user name dhaval in my linux server. Currently i am using fedora 10. as os. and then add the use ...
- 08-30-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
samba cannot access
hi everyone I am new to samba, i created a user name dhaval in my linux server. Currently i am using fedora 10. as os. and then add the use in the samba as
smbadd -a dhaval
and give the password.
also there were some users previously created like xxx.
my smb.conf file is as follows:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
domain logons = yes
load printers = yes
cups options = raw
[xxx]
comment = Shared Files
path = /home/xxx
writeable = yes
browseable = yes
guest ok = yes
printable = no
;[xxx1]
; comment = Shared Files
; path = /home/xxx1
; writeable = yes
; browseable = yes
; guest ok = yes
; printable = no
[dhaval]
comment = Shared Files
path = /home/dhaval
writeable = yes
browseable = yes
guest ok = yes
printable = no
[xxx2]
comment = Shared Files
path = /home/xx2
writeable = yes
browseable = yes
guest ok = yes
printable = no
[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = %S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[netlogon]
path = /home/samba/netlogon
guest ok = Yes
[profiles]
path = /home/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
---------------------------------------------------------------------
When try to login from windows i can access xxx
but i cant access dhaval, the error message is network can't access.
- 08-30-2010 #2Just Joined!
- Join Date
- Jun 2010
- Posts
- 25
first check that selinux is enabled or disabled, check it by typing this commandCode:[dhaval] comment = Shared Files path = /home/dhaval writeable = yes browseable = yes guest ok = yes printable = no
if ur selinux is enabled then change the context of ur samba shared directoryCode:sestatus
then assign smb passwd to user "dhaval" by typing this commandCode:chcon -R -t samba_share_t /home/dhaval
then give desired passwordCode:smbpasswd -a dhaval
it will work....... check it
- 08-31-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
access samba share
hey samba is working, a can access all the drives. I had done following to start it,
->The following command will allow to access all the directories which are inside the home
setsebool -P samba_enable_home_dirs 1
->The following command will export all the directories in read only mode
setsebool -P samba_export_all_ro 1
->The following command will export all the directories in write mode
setsebool -P samba_export_all_rw 1
-> The following command will prevents samba deamons from reading/writing nfs share by default.
setsebool -P samba_share_nfs 1
I used all these commands to access the samba share. And it works properly.


Reply With Quote