LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-17-2006, 03:45 AM   #1
TL_CLD
Member
 
Registered: Sep 2006
Posts: 366

Rep: Reputation: 45
mount.cifs for regular users?


Is it possible for a regular non-root user to use mount.cifs? I'm sick and tired of mounting SMB shares with smbfs as it fails rather often.

I've tried using /etc/samba/smbfstab but all my shares are then mounted as root, despite me using user=user,password=password,rw.

I've heard much good about cifs, but I can't for the life of me make it work. Everything is always mounted as root, which wont fly in the enviroment i'm in.

Hope someone can post a few pointers.

Thomas

ps. today I mount all SMB shares with a small shell script placed in /home/user/.kde/Autostart/ containing the following:

smbmount //server/public /home/thomas/tsl_public -o iocharset=iso8859-1,codepage=cp850,username=thomas,password=pass,uid=thomas,gid=users
smbmount //server/coding /home/thomas/tsl_coding -o iocharset=iso8859-1,codepage=cp850,username=thomas,password=pass,uid=thomas,gid=users
smbmount //server/tl_backup /home/thomas/tsl_backup -o iocharset=iso8859-1,codepage=cp850,username=thomas,password=pass,uid=thomas,gid=users
smbmount //server/thomas /home/thomas/tsl_thomas -o iocharset=iso8859-1,codepage=cp850,username=thomas,password=pass,uid=thomas,gid=users
smbmount //server/calendar /home/thomas/tsl_calendar -o iocharset=iso8859-1,codepage=cp850,username=thomas,password=pass,uid=thomas,gid=users
smbmount //server/vl_backup /home/thomas/tsl_vivian -o iocharset=iso8859-1,codepage=cp850,username=vivian,password=pass,uid=vivian,gid=users

This works like a charm, except when smbfs craps out on me, and refuses to either transfer files, delete files or just do generel file-related stuff.
 
Old 10-19-2006, 07:21 PM   #2
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
Use the automounter
man 5 autofs
man auto.master
man automounter

Edit a file called /etc/auto.misc (should already be there)

Here's mine (all one line... tab after first cjcox):
cjcox -fstype=cifs,username=cjcox,password=secret,domain=MYDOMAIN ://server/cjcox

Edit auto.master and uncomment the line for auto.misc... should look like:
/misc /etc/auto.misc

Then start the automounter (can edit the runlevel setting in YaST to make it persistent).

# rcautofs start

Then as a user... try to go into /misc/cjcox

Not sure if all of the options you have are supported using cifs (the replacement for smbfs).
 
  


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
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 45 04-06-2020 05:31 AM
mount.cifs - mount error 20 = Not a directory da_kidd_er Linux - Networking 10 10-16-2008 12:55 PM
Normal users reading regular NTFS mount. MagusYilie Linux - Newbie 2 04-20-2005 11:07 PM
chmod help so regular users can mount cds Garibaldi3489 Slackware 4 01-31-2005 01:04 PM
enable regular users to write a mount brainlesspinkey Linux - Newbie 1 11-14-2004 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 12:21 AM.

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