LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-06-2007, 02:14 AM   #1
elly
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Samba Permission problem on FC6


Hi guys. I'm new in the Fedora Core world and my welcome hasn't been gud. In the past years have been working with Redhat 9(My favorite Linux distribution) in setting up different type of servers.

At present, I'm facing permission problems in setting a SAMBA server in FC6 (2.6.18-1.2798.fc6 i686) I have added a user on samba (elly) that also exist has a linux home user. I have also created a shared folder with 777 permission (writeable for all users). With all these settings, I still cant access my home folder and the shared folders from my windows my machine.

Output of testparm smb.conf
[global]
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No

[share]
comment = Helen in linux
path = /home/elly/share
valid users = elly, root
write list = elly
read only = No
create mask = 0777

Please assist in this. thanks in advance
 
Old 07-06-2007, 02:45 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
I still cant access my home folder and the shared folders from my windows my machine.
Do you mean "from my Windows ME machine"; or "from my Windows machine"?

Is your username and password on the Linux Machine the same as on your Windows Machine? Did you use smbpasswd to add the elly user and password.

Do you have ports 137-139 open in the Linux Server's firewall?

Look in your /usr/share/doc/samba-<version>/ directory for 4 books on Samba 3. They may have a couple of registry hacks needed for Windows ME. The samba3byExample and the Samba 3 Howto & Reference guide are the two to look at.

Last edited by jschiwal; 07-06-2007 at 02:50 AM.
 
Old 07-06-2007, 06:06 AM   #3
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
Have you also ran the smbpasswd command and added the user that way?
 
Old 07-06-2007, 09:48 AM   #4
elly
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal
Is your username and password on the Linux Machine the same as on your Windows Machine? Did you use smbpasswd to add the elly user and password.

Do you have ports 137-139 open in the Linux Server's firewall?
Sorry, I ment Windows machine, running XP pro. I have also allowed port 137-139 tcp and udp on my iptables. Even if i flush the iptables rule, i still cant access the server.

I have user smbpasswd -a to add elly to samba, used the same/different password and still face the same problem. I just don't know what going on. all configuration OKAY.
 
Old 07-07-2007, 12:33 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Make sure that the smbd daemon is running. Also try opening port 445 as well. At least temporarily. Does the windows network use WINS or DNS for browsing?

Either the samba or a samba-doc package contains some samba 3 books that might help. The Samba 3 by example may illustrate a step you skipped. The Samba 3 Howto & Reference has a troubleshooting section on browsing as well.

Last edited by jschiwal; 07-07-2007 at 01:01 AM.
 
Old 07-09-2007, 08:29 AM   #6
elly
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
OK. I have made some progress towards the solution. We can rule out following:
1. firewall - currently, I don't have any active ip chain rule.
2. DNS or WIN server - But my network uses dns.

I gone trough the samba check list, n change my smb.conf file to

[global]

[homes]
read only = No

[tmp]
comment = temporary files
path = /tmp

[share]
path = /share

VERY simple configuration. Now, I can only access the /share and /tmp folders but, I can't write nor edit. The folders have the following properties

/share - Permission(1777), owned by elly
/tmp - Permission(1777), owned by root
 
Old 07-09-2007, 08:41 AM   #7
blackfish
Member
 
Registered: May 2006
Location: England
Distribution: CentOS, Ubuntu Server, Untangle, pfSense
Posts: 78

Rep: Reputation: 15
the basic firewall in the fedora core system manager needs to be disabled for samba! I had the same issue myself.

can you use the ping command to ping each machine on the network?? also check to see if there is an entry in the arp list for the linux box on your windows machine (run > cmd > arp -a)

try and ping by ip address first and then by netbios name and/or dns name (if applicable).

also browse to the folder in the fedora core hard drive and set the permissions /owner permissions to "elly"

then run:

service smb restart

then try again

HTH

BlackFish

EDIT: Sorry disregard the stuff about pinging, misread another post :-P

sorry

Last edited by blackfish; 07-09-2007 at 08:42 AM.
 
Old 07-09-2007, 09:14 AM   #8
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
hey friend

don't worry!
follow this configuration.........

[global]

workgroup = Destiny
server string = Samba Server
netbios name = Server1
interfaces = lo eth0 192.168.0. /24
hosts allow = 127. 192.168.0.
log file = /var/log/samba/%m.log
max log size = 500
passdb backend = smbpasswd
smb passwd file = /home/samba/smbpasswd
pam password change = Yes
passwd program = /usr/bin/passwd %u
encrypt passwords = yes
unix password sync = Yes
time server = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
security = user
; password server = <NT-Server-Name>
domain master = yes
domain logons = yes
logon script = %u.bat
logon path = \\%L\Profiles\%u
logon drive = Y:
logon home = \\Server1\%U\win9x_profile
idmap gid = 16777216-33554431
admin users = root rahul
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/adduser -n -g 100 -d /dev/null -s /bin/false -M %u
add user script = /usr/sbin/useradd "%u" -n -g users
delete user script = /usr/sbin/userdel "%u"
delete user from group script = /usr/sbin/userdel "%u" "%g"


local master = yes
os level = 64
preferred master = yes


wins support = yes
# wins server = 192.168.0.2
wins proxy = yes
[homes]
comment = Home Directories
browseable = no
writeable = yes
; valid users = %S
; valid users = MYDOMAIN\%S


[Profiles]
path = /home/profiles
browseable = no
create mask = 0600
directory mask = 0700
profile acls = yes
comment = public profile
writeable = yes
[Interview]
comment = Destiny Interview
path = /Destiny/Interview
valid users = @interview
read list = @interview
write list = @interview
writeable = yes
inherit permissions = Yes
volume = Interview
browseable = yes
................................
This is what i m using now.
Frist u should declare a domain (Destiny_im using)and server name(server1_im using) in ur machine.
and then its important to add ..

wins support = yes
wins proxy = yes

in ur golbal section in smb.conf file

here..
01. [Homes] for user home directory. each user can browse there own directory
02. [profile] for user logon and access
03. [Interview] a share, where only interview group can access.
and so on...........

first try to understand my configuration and go ahed. I think u can...............
if u use XP machine then u shoud add ur machine in ur domain. for that u must create a admin user for smb. here i create root,rahul.

if failure allwayes follow the .log file in /var/log/samba/smbd.log or like this (what u declare in global section)


best luck
 
Old 07-10-2007, 02:20 AM   #9
elly
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I'm glad to announce that, I have SOLVED my problem.

There is something called SElinux, an additional security feature on the kernel that comes with FC5, FC6 and I'm sure FC7 too. In order to get samba to work and remove the permission issues (that stressed me). You've to disable it. U can use one of the two method (I have used the first method.)

1. On the Lilo or grub.conf file, append selinux=0 on the kernel line
exampel of my grub.conf
-----------------------------------------------------------------------------------------------------
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,2)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet selinux=0
initrd /initrd-2.6.18-1.2798.fc6.img
title WIndows 2003 Server
chainloader +1
-----------------------------------------------------------------------------------------------------
2. Another method can be found on the following link:
http://lists.samba.org/archive/samba...ay/120625.html

Thanks for the help guys. Looking forward in returning the favor.
 
  


Reply



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 sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 05:55 AM
Problem in samba(Folder Permission) RajendraKumar Linux - Software 1 07-30-2006 10:11 AM
Samba permission problem with NTFS drive g3m1n12281 Linux - Software 2 11-04-2005 09:00 AM
Printer Permission problem with samba techrolla Linux - Software 5 05-26-2004 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 AM.

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