Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] mount cifs user read / write rights managment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jeken
n00b
n00b


Joined: 11 Nov 2005
Posts: 25

PostPosted: Thu Mar 28, 2013 10:42 am    Post subject: [solved] mount cifs user read / write rights managment Reply with quote

howdi..

i'm trying to mount a shared directory of a win 2008 server with my gentoo client as user
and tried to do it with an alias in my ~/.bashrc :
Code:

alias mdemo1="sudo /bin/mount -t cifs //server-ip/directory-to-mount /mnt/mount-point -o file_mode=0664,dir_mode=0775,username=myuser,password=mypwd"

to be able to mount with my user i added to my sudoers.tmp :
Code:

username ALL=(root) NOPASSWD: /bin/mount


the mounting works perfectly well but i cant get the writing right for my user. reading works well.
can anyone tell me what i'm doing wrong ?
i tried to set this all up via the fstab, but that didnt work better ..


Last edited by jeken on Thu Apr 04, 2013 8:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Thu Mar 28, 2013 9:05 pm    Post subject: Reply with quote

What is the output of cat /proc/mounts ; ls -ld /mnt/mount-point ; id ; > /mnt/mount-point/test?
Back to top
View user's profile Send private message
jeken
n00b
n00b


Joined: 11 Nov 2005
Posts: 25

PostPosted: Thu Apr 04, 2013 8:34 am    Post subject: Reply with quote

sry for the late reply but hadnt been at work for a while, so couldnt check it.
but i managed to get it running by adding the correct uid and gid for my user..
thx for helping.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum