Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I understand that I can use swat to configure the samba server however one problem I am unable to run it. When i use
# chkconfig swat on
However I get the error message
error reading information on service swat: No such file or directory.
I know that it would appear that I don't have the program installed however I am unable to find it in use Add/Remove applications. I am using Redhat 9 and the Gnome desktop.
Yes I can do that but my problem is that I am unable to get to the shared directory from the windows machine. I have in fact edited the conf file myself BUT thought I must be doing something wrong.
Here is a post of the config file. I have a windows workgroup called home and the user graham is a valid login on all machines including the linux one. The shared directory is owned by graham and has been set to share to everyone! Any ideas would be welcome!
#======================= Global Settings =====================================
[global]
workgroup = Home
server string = File Server
hosts allow = 192.168.1.
printcap name = /etc/printcap
load printers = yes
printing = cups
guest ok = yes
guest account = graham
log file = /var/log/samba/%m.log
max log size = 0
security=user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
username map = /etc/samba/smbusers
guest ok = yes
dns proxy = no
[Music]
path = /home/graham/Music
public = yes
writeable = yes
comment = Music files
guest ok = yes
I am afraid that it didn;t work. I have also set security to share but that dosn't work either. I really am running out of ideas!! Can anyone help please?
Oh one last thing the director "Music" has permissions of "Read,Write & Execute" for owner group and others. Also folder is owned by graham and graham is the group!
I'm extremely weak on Samba but try add a netbios name
netbios name=File Server
Then a least hopefully it's a start and you can see it in windows network neighbourhood, just in case having a firewall set too high can stop samba working
Well thats the thing I CAN see the linux machine in the network neighborhood. Also if I try and browse the linux machine I get prompted for a password and user-name. I use graham as the user and password which is valid for both linux and windows machine. This is then authenticated and I can then see the shared folder. However thats where the problem starts I am unable to browse inside that folder and when I do I can't get access to to not having correct permissions!
You shouldn't need to use the "netbios name" parameter unless your name services are very broken.
Broken name services will make samba psychotic..,.
When you type the command "hostname" at a text prompt do you get the correct name of your host?
The first time you add a samba password you need to use the -a switch to the smbpasswd command, like so:
smbpasswd -a graham
Samba applies the permissions defined in smb.conf, then those that apply at the *nix level. Either can prevent you from accessing something.
You can get swat running, but editing smb.conf will give you a far deeper understanding of how your system works.... and always remember to make a copy of /etc/samba/smb.conf *before* you run swat, because swat will mangle the file beyond all recognition (mostly by removing all comments).
If you have up2date, you can "up2date samba-swat" in order to install swat. You should also "up2date samba" while you are at it.
If you don't have an up2date subscription, then ftp over to updates.redhat.com and get all the samba rpms
Install them with the command "rpm -Uvh samba*rpm" from a text prompt.
Do *not* run the unpatched versions distributed on any Red Hat CD - there is a security flaw and a couple of bugs too. Unless you are the kind of guy that likes to stand around bus stops blindfolded with your pants down, in which case don't bother loading any patches.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.