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 - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-17-2005, 03:37 PM   #1
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
Samba Automout


Hello all, my situation at the moment is I have my primary linux machine (Slackware 10.1) and I have my Windows 2000 (strickly because I need my S-Video to work) as my secondary. On my Windows 2000 machine I have set the correct permissions to log into the machine as a user on my Linux box and that is well. I can edit and change files etc. from my primary which is great. The ordeal in which I am facing is being able to automount the remote share onto my Linux box. I followed the tutorial on just linux and I added the following to my fstab.

//192.168.2.162/shared /mnt/Windows2000 -o username=*****,password=***** 0 0

this appears to be the incorrect method. Aswell I tried SMB4k which is a great application but I accidently chmod u+s to smbmount and now I can no longer mount with that is you can please tell me how to get that fixed as well that would be great. Thanks again for all the great help.
 
Old 07-17-2005, 04:30 PM   #2
igimaster
LQ Newbie
 
Registered: Apr 2005
Posts: 27

Rep: Reputation: 15
Welcome to the community

I do alot of networking to so I'll try to help you here. I just have a few questions for you. The way I understand what your saying is you use mainly Linux around the house, but you have one Windows 2000 client box (I'm assuming you are at home and this makes the most sense if this is wrong tell me) that you use as a file server as well as for other purposes having to do with the video card and programs you used on the box. Rather than storing all the files on a linux file server you want the files to stay on the Windows 2000 box. You also when you boot want to mount the share on the 2000 box at boot on your Linux box.
One major issue I see with your fstab entry is no file system type is listed. If you can still sucessfully mount using your smb tool, I would recommend using the following example for an fstab entry as all one line. I got this to work to connect to my samba server. make sure you substitute username and password for the ****'s.



//192.168.x.x/myshare /mnt/mountpoint smbfs username=******,password=********* 0 0

here is an example of the proper format definately don't use the -o .

If you can't mount using this or the smb mount tool it may have to do with the fact that you used the chmod u+s command. The question is what file system or section of the file system did you use it on. Did you run the command by itself or as an option to a mounting command? Will windows still read it's file system? Are there any other problems running programs on the Linux or windows box.
From reading the man pages for chmod if that was all you used, the u option is for user who owns it and +s is to set sticky bit on.
More on that later
 
Old 07-18-2005, 01:04 AM   #3
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Original Poster
Rep: Reputation: 30
Thanks for your quick repsonse I now go the folder from the Windows directory to mount on Linux upon startup. Yet again I cannot thank you enough on that. Now concerning the other issue I issued the command chmod u+s smbmount in the /usr/bin directory if that leads you to any more thoughts on how I can solve this fiasco. Thanks again
 
Old 07-18-2005, 07:05 PM   #4
igimaster
LQ Newbie
 
Registered: Apr 2005
Posts: 27

Rep: Reputation: 15
the sticky bit

If your computer is succesfully mounting the windows share at boot, congratulations. If not post clearly that is isn't working.
As far as chmod u+s /usr/bin
What that did was turn on the sticky bit for the usr not that that really makes sense as a command it probably just turned on the sticky bit reguardless of the weird syntax here.
Here is a quick lesson on permissions so I can explain the permission you enabled.
Many linux users use a number system rather than the letters.
For example various combinations of 4 2 and 1 added together define Linux Permissions for the ext2 and 3 file systems at least. These stand for the basic permissions read 4 write 2 and execute 1. When applied to files and folders they protect your file system.
When you use the chmod command using the number you set the permissions for the owner (user) group and everone else.
For example chmod 761 /usr/bin would cause /bin to be read write and execute for the owner, read and write for the owning group, and execute for everyone else.
There is one more bit that is often overlooked the fourth digit that is assumed when not written.
4 stands for Suid. This allows the file when executed to preform it's tasks with the permissions of the owner. 2 stands for Guid. this allows the file when executed to preform it's tasks with the permissions of the group that owns the file.
Now to your questions 1 the sticky bit the fourth digit. This causes files when created in the folder it's set on to have the group that owns the folder to the be the owning group as opposed to the users group. It's a very useful setting.

To undo this if there is any problems I would recommend the command chmod u-s /usr/bin .
If that command caused any damage that should fix it. You can always use the man command to learn more about a command though sometimes it's rather dry. for example
man chmod
that would tell you that you turned on the sticky bit and you could figure out what to research if not how to turn it off.

danny
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 PM.

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