James Pearson
2008-Jun-04 11:42 UTC
[CentOS] Mounting cifs shares by non-root users on CentOS 4.6
I'm trying to set up mounting of a Windows share for non-root users via /etc/fstab on a CentOS 4.6 box - I've followed the instructions at: <http://wiki.centos.org/TipsAndTricks/WindowsShares> Using something like the /etc/fstab example given in the wiki page (with, of course, using a valid share, username and password for my set up): //winbox/getme /mnt/win cifs user,uid=500,rw,suid,username=sushi,password=yummy 0 0 When as a non-root user I do: % mount /mnt/win mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) Running mount as root works fine, but I can not get it to work for non-root users. Any ideas? Thanks James Pearson
Ralph Angenendt
2008-Jun-04 11:45 UTC
[CentOS] Mounting cifs shares by non-root users on CentOS 4.6
James Pearson wrote:> % mount /mnt/win > mount error 1 = Operation not permitted > Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)NOTES This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled. Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080604/73a6c304/attachment-0002.sig>
ceejay cervantes
2008-Jun-04 11:51 UTC
[CentOS] Mounting cifs shares by non-root users on CentOS 4.6
try using autofs. ----- Original Message ---- From: James Pearson <james-p at moving-picture.com> To: centos at centos.org Sent: Wednesday, June 4, 2008 19:42:18 Subject: [CentOS] Mounting cifs shares by non-root users on CentOS 4.6 I'm trying to set up mounting of a Windows share for non-root users via /etc/fstab on a CentOS 4.6 box - I've followed the instructions at: <http://wiki.centos.org/TipsAndTricks/WindowsShares> Using something like the /etc/fstab example given in the wiki page (with, of course, using a valid share, username and password for my set up): //winbox/getme /mnt/win cifs user,uid=500,rw,suid,username=sushi,password=yummy 0 0 When as a non-root user I do: % mount /mnt/win mount error 1 = Operation not permitted Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) Running mount as root works fine, but I can not get it to work for non-root users. Any ideas? Thanks James Pearson _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080604/50f252e4/attachment-0002.html>
Anne Wilson
2008-Jun-04 11:58 UTC
[CentOS] Mounting cifs shares by non-root users on CentOS 4.6
On Wednesday 04 June 2008 12:42:18 James Pearson wrote:> I'm trying to set up mounting of a Windows share for non-root users via > /etc/fstab on a CentOS 4.6 box - I've followed the instructions at: > > <http://wiki.centos.org/TipsAndTricks/WindowsShares> > > Using something like the /etc/fstab example given in the wiki page > (with, of course, using a valid share, username and password for my set > up): > > //winbox/getme /mnt/win cifs > user,uid=500,rw,suid,username=sushi,password=yummy 0 0 > > When as a non-root user I do: > > % mount /mnt/win > mount error 1 = Operation not permitted > Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) > > Running mount as root works fine, but I can not get it to work for > non-root users. > > Any ideas? >I never got it to work, but now I mount in fstab, which is problem-free. Anne -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20080604/eda4683d/attachment-0002.sig>
James Pearson
2008-Jun-04 12:08 UTC
[CentOS] Mounting cifs shares by non-root users on CentOS 4.6
Ralph Angenendt wrote:> James Pearson wrote: > >>% mount /mnt/win >>mount error 1 = Operation not permitted >>Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) > > > NOTES > This command may be used only by root, unless installed setuid, > in which case the noeexec and nosuid mount flags are enabled.If I try to set /sbin/mount.cifs setuid root, then I get: % mount /mnt/win mount error: permission denied or not superuser and mount.cifs not installed SUID Which is rather strange as mount.cifs _is_ SUID Does this mean that the wiki examples don't work for CentOS 4? Thanks James Pearson
Clint Dilks
2008-Jun-04 22:38 UTC
[CentOS] Mounting cifs shares by non-root users on CentOS 4.6
Anne Wilson wrote:http://eu.wowarmory.com/search.xml?searchQuery=pookii&searchType=characters> On Wednesday 04 June 2008 12:42:18 James Pearson wrote: > >> I'm trying to set up mounting of a Windows share for non-root users via >> /etc/fstab on a CentOS 4.6 box - I've followed the instructions at: >> >> <http://wiki.centos.org/TipsAndTricks/WindowsShares> >> >> Using something like the /etc/fstab example given in the wiki page >> (with, of course, using a valid share, username and password for my set >> up): >> >> //winbox/getme /mnt/win cifs >> user,uid=500,rw,suid,username=sushi,password=yummy 0 0 >> >> When as a non-root user I do: >> >> % mount /mnt/win >> mount error 1 = Operation not permitted >> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) >> >> Running mount as root works fine, but I can not get it to work for >> non-root users. >> >> Any ideas? >> >> > I never got it to work, but now I mount in fstab, which is problem-free. > > Anne > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >Another idea is to configure sudo to allow your users to do what is required :)