ALT Linux Bugzilla
– Attachment 6477 Details for
Bug 31735
Allow ordinary user to mount cifs
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
control(8) facility script
mount.cifs (text/plain), 832 bytes, created by
Vladimir D. Seleznev
on 2016-01-25 11:35:27 MSK
(
hide
)
Description:
control(8) facility script
Filename:
MIME Type:
Creator:
Vladimir D. Seleznev
Created:
2016-01-25 11:35:27 MSK
Size:
832 bytes
patch
obsolete
>#!/bin/sh > >. /etc/control.d/functions > >BINARY_MOUNT_CIFS=/sbin/mount.cifs > >new_summary "mount cifs file systems" > >new_fmode public 4711 root root >new_fmode wheelonly 4710 root wheel >new_fmode netadmin 4710 root netadmin >new_fmode unprivileged 755 root root >new_fmode restricted 700 root root > >new_help public "Any user can execute $BINARY_MOUNT_CIFS" >new_help wheelonly "Only \"wheel\" group members can execute $BINARY_MOUNT_CIFS" >new_help restricted "Only root can execute $BINARY_MOUNT_CIFS" > >if is_builtin_mode "$*"; then > case "$*" in > status|'') > STATUS_MOUNT="`control_fmode "$BINARY_MOUNT_CIFS" status`" || exit 1 > if [ -n "$STATUS_MOUNT" ]; then > echo "$STATUS_MOUNT" > else > echo "unknown" > fi > ;; > *) > control_fmode "$BINARY_MOUNT_CIFS" "$*" > ;; > esac >else > control_fmode "$BINARY_MOUNT_CIFS" "$*" || exit 1 >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 31735
: 6477