Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Keep in mind I am a linux newbie and dont even know what this command does.
but I input
cat /etc/sysconfig/network
and got back
NETWORKING=yes
HOSTNAME=ATOMICMAIL
GATEWAY=10.1.0.4
[root@ATOMICMAIL root]#
Now, I rebooted the linux box 2 min ago, and need to check if the webmin starts automatically
I did manually start samba though from the command prompt as soon as I logged back on.
also I made the changes you perscribed, now my smb.conf looks like this.
but after I restarted samba and tried again on the xp laptop, I got the same
error.
________________________
[global]
Netbios name = SMBSERVER
server string = ITSDABOMBMON
workgroup = JAEB.NET
security = user
encrypt passwords = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = Yes
smb passwd file = /etc/samba/smbpasswd
logon home = \\netbiosname\%U
passwd program = /usr/bin/passwd %u
logon path = \\SMBSERVER\profiles\%U
;admin users = joncolby
[homes]
comment = Home Directories
browseable = No
writable = yes
valid users = %S
read only = no
create mode = 0600
directory mode = 0700
login home = \\SMBSERVER\%U
[tmp]
comment = Temporary File Location
path = /tmp
read only = no
public = yes
[jon]
create mode = 0600
directory mode = 0700
path = /home/samba/jon/
profile acls = yes
read only = no
writable = yes
valid users = jon daffy
write list = jon daffy
[daffy]
path=/home/daffy
comment = welcome
public = No
create mask = 0640
directory mask = 0750
writeable = Yes
valid users = jon daffy
write list = jon daffy
___________________________________________________---
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148
Rep:
OK, looks like that you may need to re-install your fedora.
Before this, does your fedora have internet access? Do you have handy the DNS numbers of your ISP? How do you connect to internet?
In the fedora instalation, make sure that don't select any of the samba packages. Download the latest rpm of samba (found in www.samba.org). Copy the webmin.rpm and the samba.rpm files in your fedora box. Install webmin first. After this, change your subnet mask of your xp box to 255.255.255.0 and then try to connect to your ipcop. Then try to connect to it from your xp box. During the fedora installation (network setup) make sure that you don't set up a firewall! Your hostname should be a name like "fedorabox", your IP should be 10.1.0.112, your subnet musk should be 255.255.255.0 and your gateway and dns should be those numbers your ISP have provided you. If you don't know what this is let me know
If you give me a couple of minutes I could replicate the instalation in a box. I 'll get back to you.
Just a thought but when you add the samba users you need to use 'smbpasswd -a username' not 'smbpasswd username'. You can check whether you have added samba users successfully by opening /etc/samba/smbpasswd (you need to be root) and seeing if all your users are listed in it - you don't edit this file by the way always use smbpasswd to change it.
Originally posted by motub Actually, you need to do smbpasswd -a -e <username> <password> -- the -a switch adds users, but the -e switch enables them.
From 'man smbpasswd' - root user options
-a This option specifies that the username following
should be added to the local smbpasswd file, with
the new password typed. This option is ignored if
the username specified already exists in the smb_
passwd file and it is treated like a regular change
password command. Note that the user to be added
must already exist in the system password file
(usually /etc/passwd) else the request to add the
user will fail.
-d This option specifies that the username following
should be disabled in the local smbpasswd file.
This is done by writing a 'D' flag into the account
control space in the smbpasswd file. Once this is
done all attempts to authenticate via SMB using
this username will fail.
-e This option specifies that the username following
should be enabled in the local smbpasswd file, if
the account was previously disabled. If the account
was not disabled this option has no effect. Once
the account is enabled then the user will be able
to authenticate via SMB once again.
Therefore for a new user you don't need the -e switch, you only need it if you've previously used the -d switch to disable an existing user. However, as the man says it doesn't harm and in the case of an existing disabled user then -a -e will get it going again.
ok, Im back.
Good Morning from hawaii to you all !
The olympic torch should be passed to dtournas because he has stuck with this for 2 pages now !!!
You all Help him out where ever possible.
Ok, I have used the -a and the -e switches
Ill upload a picture here if it is needed of my directory structure if you want to look thru it
I wonder what is causing my problem ?
is there some case sensitive thing that I could have messed up ?
right now my webmin dosent work either, is there a command you know of that will get me feedback on the inux machine as to
what is happening with the network status ?
maybe something basic is not right. I run a command to disable a firewall but It dosent work, I dont think i have a firewall program / service running
on this linux box.
should I do a "clean install"
if so, can you all give me a good instruction sheet that comes from the refined knoledge of your combined experiences. ?
or maybe not that much but something close .... hehehe
OK, I re installed the Fedora, Ran the updates but didNOT update to the new kernel 2.6.6-1.427
I installed the webmin and it works !!
and when I was installing fedora i did not check the box for windows file sharing because it contained Samba
Now, I have a fresh version of fedora on my computer. webmin works !
BuT !!! Check this out.
Samba is on anyway !!!!! maybe it came in with the update. ?.?.?
i click the red hat icon and go to system settings then to server settings and samba is there... BUT what is different this time is that it works. If i click on it. it asks me for root password.
I type it in and i can add users and folders and stuff.
I made a share, a folder that I created called /nfs
now, when i try to connect to it, it brings up a login window !!!
I am getting closer !!! HEHEHE
Problem is, the username is arleady filled out with Atomicmailserve\guest and windows wont let me change it.
I can type in a password though.
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148
Rep:
Hi jon, sorry for being out for a while. It is saturday morning in greece and I just came into a net cafe to say hi!
So, you are really getting closer! There are now two options to configure samba. The easy way and the easiest way
1st: Try the step that you add users to linux by:
useradd user1
and then
smbpasswd -a user1
be sure that in the smb.conf file you have the
security=user
parameter, and then try to connect. If this won't work, try the easiest way: webmin!! Did you like it by the way? Try from the webmin to enter the servers section and then at the bottom there is something that is called:
Samba Windows File Sharing
Well, you may want to try here for your self. You can add users, change the passwds, add or/and remove shares and all of these good stuff!
I am having the exact same problem. I believe it to be a firewall problem. Mainly because when i stop iptables i can view the shares from my xp machine. I tried opening up the ports 137-139 & 445 for both tcp and udp on my fedora2 machine and it didnt seem to work. But apparently now it does. The only problem remaining for me is that when i click on the share xp tries to login as guest and i want to be able to login as whatever i want to the samba machine. is there any way to change that without trying to map the network drive. (I hope this post helps the thread started with their problem....but i think they will get stuck where i am now...but please help them first.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.