LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   mount.cifs for regular users? (https://www.linuxquestions.org/questions/suse-opensuse-60/mount-cifs-for-regular-users-493095/)

TL_CLD 10-17-2006 03:45 AM

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. :rolleyes:

cjcox 10-19-2006 07:21 PM

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).


All times are GMT -5. The time now is 02:36 PM.