LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-02-2005, 12:26 AM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Still can't get this to work right


I am still at a loss on how to get my samba share mounted by a normal user with rw access, I have tried putting this in my fstab..

Code:
//minamoto/files /mnt/network smbfs  credentials=/etc/credentials,rw,users,umask=000 0 0
and tried the following, but getting back the following..
Code:
slackuser@slacker:~$ mount //minamoto/files /mnt/network
mount: only root can do that
slackuser@slacker:~$ mount //minamoto/files
cannot mount on /mnt/network: Operation not permitted
smbmnt failed: 1
slackuser@slacker:~$
so then I tried making the following changes to fstab, but with still no success...
Code:
//minamoto/files /mnt/network smbfs credentials=/etc/credentials,uid=slackuser,gid=slackuser,fmask=600,dmask=700 0  0
and still nothing
Code:
slackuser@slacker:~$ mount //minamoto/files
mount: only root can mount //minamoto/files on /mnt/network
slackuser@slacker:~$ mount //minamoto/files /mnt/network
mount: only root can do that
slackuser@slacker:~$
any ideas?
 
Old 06-02-2005, 06:33 AM   #2
justin_p
Member
 
Registered: Jan 2004
Location: Virginia, USA
Distribution: slack 13; I've used it all :)
Posts: 433

Rep: Reputation: 30
try removing the double //, so it just reads /blah..... if it's not working it's worth a shot.
 
Old 06-02-2005, 06:38 AM   #3
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
To get smb4k to work properly I had to chmod + s a couple of files. I think the same may be true for you. As root:

chmod +s /usr/bin/smbmnt /usr/bin/smbumount
 
Old 06-02-2005, 07:09 AM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
I am just running samba 3.0.5, I tried changing both smbmount and smbumount to +s but still nothing, and by removing one / it still wouldn't mount

smbmount and smbumount under 3.0.5 is in /usr/bin

Last edited by Jeebizz; 06-02-2005 at 07:15 AM.
 
Old 06-02-2005, 08:15 AM   #5
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
smbmount and smbmnt are 2 differnent programs you DID NOT want to change smbmount, you wanted to change smbmnt

Make sure you chmod -s /usr/bin/smbmount
 
Old 06-02-2005, 09:04 AM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
ok, I changed mod -s on /usr/smbmount
Code:
root@slacker:/usr/bin# ls -l smbmount
-rwxr-xr-x  1 root bin 601200 2004-09-13 18:38 smbmount
and applied chmod +s to /usr/bin/smbmnt
Code:
root@slacker:/usr/bin# ls -l smbmnt
-rwsr-sr-x  1 root bin 8076 2004-09-13 18:38 smbmnt
root@slacker:/usr/bin#
but still can't mount the share
Code:
slackuser@slacker:/usr/bin$ mount //minamoto/files
mount: only root can mount //minamoto/files on /mnt/network
slackuser@slacker:/usr/bin$ mount //minamoto/files /mnt/network
mount: only root can do that
slackuser@slacker:/usr/bin$ mount -t smbfs -o credentials=/etc/credentials //minamoto/files /mnt/network
mount: only root can do that
slackuser@slacker:/usr/bin$
 
Old 06-02-2005, 09:34 AM   #7
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
What are the permissions on /mnt/network ?
 
Old 06-02-2005, 09:53 AM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,189

Original Poster
Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Code:
drwxr-xr-x   2 root root   48 2005-05-06 15:20 cdrw/
drwxr-xr-x   2 root root   48 2005-05-06 15:20 cpflash/
drwxr-xr-x   2 root root   48 2002-03-16 01:34 dvdrom/
drwxrwxrwx  15 root root 8192 1969-12-31 18:00 fat32/
drwxr-xr-x   2 root root   48 2002-03-16 01:34 floppy/
drwxr-xr-x   2 root root   48 2002-03-16 01:34 hd/
drwxr-xr-x   2 root root   48 2005-05-06 15:20 iso/
drwxr-xr-x   2 root root   48 2005-05-06 16:09 network/
dr-xr-xr-x   1 root root 8192 2005-05-22 23:03 ntfs/
but I don't see why that makes any difference, because I can mount my cdrw, dvd and other stuff just fine..
 
  


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
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 02:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 10:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 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