LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to mount windows shared folder as normal user (https://www.linuxquestions.org/questions/linux-software-2/how-to-mount-windows-shared-folder-as-normal-user-487379/)

lucasm 09-27-2006 08:42 AM

how to mount windows shared folder as normal user
 
hi folks!!!


i'm trying to mount a windows share folder as a normal user, and i'm having problems.

the situation:
  • a windows xp computer (called comp_win)
    a shared folder called door (rw for anyone)
  • a debian-sarge computer with samba working good
    the user my_name in the groups: dialout, cdrom, floppy, audio, www-data, video, plugdev, users, hal

my /etc/fstab is:
Code:

//comp_win/door  /mnt/door    smbfs  gid=100,umask=000,users,exec,noauto    0      0
my door folder's permittion is:
Code:

drwxrwxrwx  2 root root 4096 2006-09-27 08:38 door
when i try to mount as root, it is successfully!
Code:

mount /mnt/door/
obs: after this command... i have to type the share's password.

but when i try to mount as the user my_name (using the same command above), i have the following error message:
Code:

my_name@my_debian:~$ mount /comp_win/door/
Password:
cannot mount on /comp_win/door: Operation not permitted
smbmnt failed: 1

what i didn't do to make this work???

note: i want to permit that some users may mount this shared folder without using the root password.

ps: sorry if this question is already done and solved in the forum... i looked for it and i haven't found any post about it.


regards,

sn68 09-27-2006 09:35 AM

In file browser File->Connect to server
Choose windows share & fill in the ip, shared folder, username & name you want to give to connection & press connect.
This will create an icon on desktop which you can right click and select open to access

I use it to access windows shared folders from fc5 (File browser Nautilus), same should work for Debian too.

Crito 09-27-2006 09:39 AM

Probably need to chown the door dir to the user or group who'll be mounting it.

lucasm 09-28-2006 06:12 AM

sn68,

i'd like to do this in the console world.

[]'s

lucasm 09-28-2006 06:14 AM

Crito,

i've already done it:

Code:

chwon 777 door
[]'s


All times are GMT -5. The time now is 04:03 AM.