LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba Utility Config. Help (https://www.linuxquestions.org/questions/linux-software-2/samba-utility-config-help-162738/)

andrewflanery 03-26-2004 03:29 PM

Samba Utility Config. Help
 
Well I am new to Linux and I am having all types of problems and you all are so helpful, I thought I may ask another question. Some background first:
-I am running Mandrake 9.1 (soon upgrade to Mandrake 10)
-I have successfully installed samba (miracles do happen)
-I have no clue about samba
- I can't get it to work
-I can't edit samba's config files due to I am not root and I don't know how to be root in the gui because it is not a logon user option.
-I want to use samba to access files being shared by windows and to share with windows
-The server on the network is a Windows XP Home Edition Box with an IP of 192.168.0.1
-The linux box is on the network with an IP of 192.168.0.2
-The network or workgroup id is "FLANERY" w/o the quotations.
-I want to do print sharing, but don't know if I can b/c the cups program built into mandrake could find my printer but not print to it. That doesn't make any sense to me at all. The printer is attached to the windows machine running XP home.
-There are only 2 computers on this network because it is a testing network.
-The main goal is to be able to share printers.
-I can't use swat because I can't edit it's config file to be able to enable it.

Could someone please help me or even better write me a config file to replace the other one and tell me what to do about access permissions. Thanks so much and keep up the great work. Feel free to e-mail me. Bye.

andrewflanery 03-26-2004 03:39 PM

I don't even know how to start up samba. So right now my computer was just as if it was installed. I don't think anything is running. Just like right after an install. Thanks.

vr6stress 03-26-2004 04:06 PM

to see if it's running: ps -ef | grep smbd
to run it in daemon mode: smbd -D

a freind gave me those commands and i'll be running them tonight so i can check mine

jsokko 03-26-2004 04:49 PM

first things first.

you need to log in as root.

I'm sure during the Mandrake install, it asked you for creating a root password. I hope you remember it.

after you log in as root, you should :

1. check to see if samba is running (via ps or system monitor)
2. if it is running, you need to configure the system by editing smb.conf which is located in /etc/samba. the default smb.conf has examples on it already so you should be able to make sense of it. if you're not feeling confident, just let me know. also search this site for samba and you should see plethora of threads regarding different issues.

andrewflanery 03-26-2004 07:28 PM

Even when I try to do it from under root in the command line it says access denied. I am clueless. And also why I was waiting for a reply I tinkered around with it myself. Bad mistake. I gave it the command "mount -t smbfs -o username=Andrew,password=techtv //192.168.0.1/Share /home/andrew" and the whole system messed up. It locked me out of my home directory and changed all the permissions to readonly, so I could log in. I had to reinstall the whole mandrake os. But that is over.

And no I don't feel confident, because even some of the examples don't make sense to me. Something about trusted hosts or something really threw me off.

I need help. And how would I mount the network share "Share" located on the "192.168.0.1" machine. CAn I fix that so it appears as a folder on my desktop automatically when I log on? I think it can because I have seen it, but hey I don't even know how ot mount it without causing a system meltdown.

Any help welcome. Thanks for what you already told me.

andrewflanery 03-26-2004 07:33 PM

Also I am wanting to install Expocity and it requires GTK+-2.0 or better. Anyone know of where I could find an RPM for mandrake 9.1? I looked on rpmfind.net but found nothing. I can install from source but the source of gtk and all it's stupid dep. and me don't mix well. So this time I am going for an rpm. And does anyone have expocity or want to install it? Expocity info and download can be found at http://www.pycage.de/expocity.html . I feel like it [mandrake] will never work like I want it to! I really want to get samba working and expocity installed. Any comments.

HarPaX 03-26-2004 07:45 PM

assuming that your username on your Linux system is andrew, you tried to mount //192.168.0.1/Share onto your home directory. This is not good.

As root, try to create a new directory in /mnt for the shared drive. Say /mnt/share for example.

Then use the same command to mount the share there. eg.

mount -t smbfs -o username=Andrew,password=techtv //192.168.0.1/Share /mnt/share

by default the mounted share will only be accesable by root, you can change this by adding the following to the mount command:

mount -t smbfs -o username-Andrew,password=techtv,uid=<uid>,gid=<gid> //192.168.0.1/Share /mnt/share

This will make <uid> and <gid> the respective owner and group for the mounted share and everything in it.

to find your uid & gid try "id andrew"

If you want to mount it at startup add the appropiate lines to your /etc/fstab file, but one thing at a time.

vi0lat0r 03-26-2004 07:55 PM

If I were you I would be -SERIOUSLY- worried about giving out not only your IP but also the password to your account (which is probably the same as your admin password). SSH -> your IP -> root -> your password -> bada bing anyone is in and has control of everything.

I think you should change your password immediately. If you gave us a bogus password - good job - you fooled me ;-)

dizzy_vee 03-26-2004 08:03 PM

violator,

he only gave his non-routable internal ip.... it can't be accessed from the internet

dizzyv

andrewflanery 03-26-2004 08:03 PM

I am behind a nat. Network Address Translation. And no the passwords are not the same. Thanks for the help. Anyone know about expocity though?

andrewflanery 03-26-2004 08:25 PM

How can I make it appear on the desktop, not just the mnt folder?

HarPaX 03-26-2004 08:33 PM

Not sure if this is the best way to go about it, but you could mount it to a directory on your desktop. Eg. Fedora keeps the desktop in /home/<user>/Desktop

if you create /home/andrew/Desktop/share and mount it there it should work. But there are probably better ways to go about it. I don't know a lot of Mandrake specific stuff.

andrewflanery 03-26-2004 08:41 PM

What is the command to create a directory?

HarPaX 03-26-2004 08:45 PM

same as in ms-dos. "mkdir"

You should probably take some time to familarize yourself with many of the basic commands for the shell you are using prior to attempting some of the more complicated stuff.

andrewflanery 03-26-2004 08:47 PM

Where can I learn these at? Me and linux need to get to know each other better. If only it was as easy as windows.


All times are GMT -5. The time now is 09:30 AM.