Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-05-2003, 05:26 PM
|
#1
|
|
Member
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179
Rep:
|
samba and fstab not playing nice
I have a samba server and client sucessfully up and running on my machine. The following command mounts a share from a winxp machine:
mount -t smbfs -o password=p //192.168.0.2/SharedDocs /mnt/winxp
Don't be fooled, though, the following command fails, reporting that the share name is invalid:
mount -t smbfs -o password=p //192.168.0.2/SharedDocs/ /mnt/winxp
While as root I can mount and unmount the filesystem whenever I want, other users can't. And the following entry in fstab also causes the invalid share name error:
//192.168.0.2/SharedDocs /mnt/winxp smbfs password=p,user 0 0
Variations such as removing the "user" argument and adding a "/" to the end of "...Docs" have no effect. I suspect fstab is automatically appending a "/" to the end of the mount command when it runs, and I seem to be powerless to stop it.
Any idea how I can get this to work?
|
|
|
|
03-05-2003, 07:07 PM
|
#2
|
|
Member
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
|
what is the username? Are you logging in as guest?
How about suid permissions on the mount binaries?
ls -l /bin/mount /usr/bin/smbmnt
chmod 4755 to turn them to suid.
|
|
|
|
03-06-2003, 05:24 PM
|
#3
|
|
Member
Registered: Feb 2003
Location: Cleveland, Ohio (USA)
Distribution: Gentoo, Kubuntu 6.06
Posts: 179
Original Poster
Rep:
|
The file smbmnt already existed. I ran ran chmod on smbmnt and mount (I couldn't use the option -l or -I - they produced "invalid option" errors). Still no success on mounting the samba filesystem on bootup. Not even by adding the mount command to rc.local.
The filesystem CAN be mounted after login - but only when I log in as root. I can then logout, login as a normal user, and still access the filesystem - until I reboot.
What else can I try?
|
|
|
|
03-07-2003, 03:13 PM
|
#4
|
|
Member
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
|
The -l ( the letter 'ell') options wasnt for the chmod. It was for ls, that lists options in the 'long' format.
What does your fstab contain?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:43 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|