installed samba but no workie

rasczak

Lifer
Jan 29, 2005
10,437
23
81
i am running ubuntu and i installed samba and started the service but i still cannot change my workgroup in network settings

i've done everything the website said to but no luck
https://wiki.ubuntu.com/settingupsamba

any help would be great.

ive tried x chat #ubuntu and theyre too busy.

btw i was able to get mplayer working, a little slow but i think i got it :)
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
hrmm server? i think my laptop is a client only and i was told if i want to see windows share i needed to install samba. the problem i have is when i go to configure my network card, the option to change workgroups is not there so i cna't change the workgroup to my windows workgroup.

ive not seen any errors on the client. and i have no server logs that i know of, since i just started samba about 5 minutes ago.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jpbelauskas
hrmm server? i think my laptop is a client only and i was told if i want to see windows share i needed to install samba. the problem i have is when i go to configure my network card, the option to change workgroups is not there so i cna't change the workgroup to my windows workgroup.

ive not seen any errors on the client. and i have no server logs that i know of, since i just started samba about 5 minutes ago.

The server would be the machine that hosts the share. The client is the machine trying to connect to the share.

What's your laptop? Is it the Linux machine, or the Windows one?
Is the network working?
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
server logs show nothin out of the ordinary, my server is a windows 2k3 server, my laptop is running ubuntu linux hoary hedgehog 5.04
and the network is working fine as my other winxp box and winxp laptop are seeing the shared files fine. i just can't seems to get the linux laptop to see my files or participate in the network. i do have internet connectivity thru the laptop so i know the network connection is fine, it's just a configuration issue, and i seems to have messed that up somewhere.
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
Workgroup is irrelevant. It used for "browsing" the network. Try to access a share by mounting it on the command line.

mkdir /mnt/share (to make the folder
mount -t smbfs -o username=<windows username> //windowscomputernameoripaddress/sharename /mnt/share

now /mnt/share shows all the shared files.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jpbelauskas
server logs show nothin out of the ordinary, my server is a windows 2k3 server, my laptop is running ubuntu linux hoary hedgehog 5.04
and the network is working fine as my other winxp box and winxp laptop are seeing the shared files fine. i just can't seems to get the linux laptop to see my files or participate in the network. i do have internet connectivity thru the laptop so i know the network connection is fine, it's just a configuration issue, and i seems to have messed that up somewhere.

If you're getting internet connectivity on the Linux client, the network is working fine. Try nweaver's suggestions.

One problem here is that you are being very vague, and not providing much information. I would have suggested about the same thing as nweaver in my first post, had you provided any useful information. :)
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
i'm trying but i'm very new to samba, and linux in general. thx for your posts guys. i'll give it a shot.
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81

mkdir /mnt/share (to make the folder
mount -t smbfs -o username=<windows username> //windowscomputernameoripaddress/sharename /mnt/share



it this all one line? or three?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
It's 2 seperate commands, mkdir to create a directory and mount to mount something to that directory.

But I would say if you're going to use smbfs, you should probably use the smbmount command as it'll work as a regular user and pretty much set things like file ownership properly. Just make sure your user owns the target mount point (in the above example, /mnt/share).
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
heres what i did

user@ubuntu:~$ sudo /etc/init.d/samba start
samba service starts up

user@unbuntu:~$ smbmount -t smbfs -o username=joe //server/share /mnt/share
>/mnt/share
>||

so i type /mnt/share and i should see all of my share files?

but i don't

my other account on the server has a password, do i need to incorporate that somewhere?

 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
no it did not work, i think i need to step away from this project for about five minutes. i've been working on it for about 8 hours straight. ><
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Samba doesn't need to be running to mount remote shares, only to share things from your machine.

What are the lines

>/mnt/share
>||

supposed to be?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jpbelauskas
no it did not work, i think i need to step away from this project for about five minutes. i've been working on it for about 8 hours straight. ><

What didn't work? The ls or the mount?

Type: mount to see everything that is currently mounted. If the share isn't listed, the mount didn't work.
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
right the mount didn't work. nor the ls.. sorry bout that. i will figure this out! not at the expense of my health of course but i will! hehe
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
Originally posted by: Nothinman
Samba doesn't need to be running to mount remote shares, only to share things from your machine.

What are the lines

>/mnt/share
>||

supposed to be?


after i typed the second command line and hit enter it gave me that little arrow

>
so i tried typing /mnt/share
and got nowhere with that

ending with
>|| <---- the two vertical lines are supposed to be the cursor :)
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jpbelauskas
Originally posted by: Nothinman
Samba doesn't need to be running to mount remote shares, only to share things from your machine.

What are the lines

>/mnt/share
>||

supposed to be?


after i typed the second command line and hit enter it gave me that little arrow

>
so i tried typing /mnt/share
and got nowhere with that

ending with
>|| <---- the two vertical lines are supposed to be the cursor :)

That usually means you didn't type the command correctly. There is an opened tic or quote that wasn't closed. Try it again:
smbmount -t smbfs -o username=joe //server/share /mnt/share
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
Originally posted by: n0cmonkey
Originally posted by: jpbelauskas
no it did not work, i think i need to step away from this project for about five minutes. i've been working on it for about 8 hours straight. ><

What didn't work? The ls or the mount?

Type: mount to see everything that is currently mounted. If the share isn't listed, the mount didn't work.



io typed mount and heres what i get:
/dev/hdal on / type ext3 (rw,errors=remount - ro)
proc on /proc type proc (rw)
sysfs on / sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev on /.dev typw unknown (rw,bind)
non on /dev type tmpfs (rw,size=5m,mode=0755)
usbfs on /proc/bus/usb type usbfs (rw)


now i have just thought of something.. ext3 is the file system? i read somewhere that ext3 cannot read ntfs, is this correct?

i may have setup ext3 as my filesystem, how can i check it to see if i did or not?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jpbelauskas
io typed mount and heres what i get:
/dev/hdal on / type ext3 (rw,errors=remount - ro)
proc on /proc type proc (rw)
sysfs on / sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev on /.dev typw unknown (rw,bind)
non on /dev type tmpfs (rw,size=5m,mode=0755)
usbfs on /proc/bus/usb type usbfs (rw)

:confused: I wonder if Linux has enough of these pseudo filesystems yet.

now i have just thought of something.. ext3 is the file system? i read somewhere that ext3 cannot read ntfs, is this correct?

ext3 doesn't read anything, the kernel does. ext3 is the filesystem. The kernel can typically _read_ NTFS, but you're working with network shares so that doesn't matter.

To the Linux system this will be an SMB filesystem, not an NTFS filesystem.

i may have setup ext3 as my filesystem, how can i check it to see if i did or not?

/dev/hdal on / type ext3 (rw,errors=remount - ro)
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
Originally posted by: n0cmonkey
Originally posted by: jpbelauskas
Originally posted by: Nothinman
Samba doesn't need to be running to mount remote shares, only to share things from your machine.

What are the lines

>/mnt/share
>||

supposed to be?


after i typed the second command line and hit enter it gave me that little arrow

>
so i tried typing /mnt/share
and got nowhere with that

ending with
>|| <---- the two vertical lines are supposed to be the cursor :)

That usually means you didn't type the command correctly. There is an opened tic or quote that wasn't closed. Try it again:
smbmount -t smbfs -o username=joe //server/share /mnt/share

might be the syntax, the directory to my server file is //server/joe's stuff /mnt/share

is it possible that the share file is incorrectly named? meaning i should take out the apostrophe and space?

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: jpbelauskas
Originally posted by: n0cmonkey
Originally posted by: jpbelauskas
Originally posted by: Nothinman
Samba doesn't need to be running to mount remote shares, only to share things from your machine.

What are the lines

>/mnt/share
>||

supposed to be?


after i typed the second command line and hit enter it gave me that little arrow

>
so i tried typing /mnt/share
and got nowhere with that

ending with
>|| <---- the two vertical lines are supposed to be the cursor :)

That usually means you didn't type the command correctly. There is an opened tic or quote that wasn't closed. Try it again:
smbmount -t smbfs -o username=joe //server/share /mnt/share

might be the syntax, the directory to my server file is //server/joe's stuff /mnt/share

is it possible that the share file is incorrectly named? meaning i should take out the apostrophe and space?

Yep, that's probably it. I'd take out the aprostrophe and space on the server.
 

Zelmo3

Senior member
Dec 24, 2003
772
0
0
I'm assuming you've installed the Samba package, which provides libsmbclient and samba-common among other things. Do a search for "Samba" in your Synaptic package manager to make sure at least those two packages got installed.
You can change your workgroup name in the /etc/samba/smb.conf file. I think Ubuntu puts Samba's standard sample file there, which has perfectly suitable default values for client machines and fairly good descriptions of a lot of the items in the file. The workgroup name is about a page down, and pretty clearly labeled. Change it to whatever you want, and make sure that line isn't commented out (a semicolon at the start of a line comments it out).
If there's no smb.conf in the /etc/samba directory, you can find the standard one in /usr/share/samba/smb.conf and copy it to the /etc/samba directory. Note that you need root priveleges for copying to that directory and for editing the file (from a command line you can sudo nano /etc/samba/smb.conf for an easy CLI editor, or sudo gedit /etc/samba/smb.conf for a GUI editor).

Even if the workgroup isn't set, you should be able to see Windows computers on the network if you click on the Places menu and select Network Servers.
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
Originally posted by: Zelmo3
I'm assuming you've installed the Samba package, which provides libsmbclient and samba-common among other things. Do a search for "Samba" in your Synaptic package manager to make sure at least those two packages got installed.
You can change your workgroup name in the /etc/samba/smb.conf file. I think Ubuntu puts Samba's standard sample file there, which has perfectly suitable default values for client machines and fairly good descriptions of a lot of the items in the file. The workgroup name is about a page down, and pretty clearly labeled. Change it to whatever you want, and make sure that line isn't commented out (a semicolon at the start of a line comments it out).
If there's no smb.conf in the /etc/samba directory, you can find the standard one in /usr/share/samba/smb.conf and copy it to the /etc/samba directory. Note that you need root priveleges for copying to that directory and for editing the file (from a command line you can sudo nano /etc/samba/smb.conf for an easy CLI editor, or sudo gedit /etc/samba/smb.conf for a GUI editor).

Even if the workgroup isn't set, you should be able to see Windows computers on the network if you click on the Places menu and select Network Servers.

where do i find that exactly?

i have samba common, but i don't see libsmbclient

btw the syntax was incorrect and i was able to get the command to work, but my files are still not visible.
all i get is a list of options such as username, password, credentials, etc...
 

rasczak

Lifer
Jan 29, 2005
10,437
23
81
ok i finally was able to see my shares via places network servers as zelmo3 stated, but i can't view via command line still, which is why i am trying to learn in the first place. any help wouldbe great.

btw thanks you guys for helping out, i learned alot today and it was well worth the slight frustation.

/cheers

joe