Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 204321 Details for
Bug 249909
Need to strip : for mount.cifs support.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
auto.cifs
auto.cifs (text/plain), 1.44 KB, created by
Ray Van Dolson
on 2007-09-24 17:30:49 UTC
(
hide
)
Description:
auto.cifs
Filename:
MIME Type:
Creator:
Ray Van Dolson
Created:
2007-09-24 17:30:49 UTC
Size:
1.44 KB
patch
obsolete
>#!/bin/bash -x ># $Id$ ># This file must be executable to work! chmod 755! > >#echo "$@" >> /tmp/auto.cifs.log > >echo "$1" | grep -q "/" > >if [ $? = 0 ]; then > echo "Illegal character in hostname." >&2 > echo "Key: $1" >&2 > exit 1 >fi > >key="$1" ># Note: create a cred file for each windows/Samba-Server in your network ># which requires password authentification. The file should contain ># exactly two lines: ># username=user ># password=***** ># Please don't use blank spaces to separate the equal sign from the ># user account name or password. >credfile="/etc/auto.cifs.credentials" ># Note: Use cifs instead of smbfs: >mountopts="-fstype=cifs,file_mode=0644,dir_mode=0755,uid=root,gid=root,domain=esri.com" >smbclientopts="" >for P in /bin /sbin /usr/bin /usr/sbin >do > if [ -x $P/smbclient ] > then > SMBCLIENT=$P/smbclient > break > fi >done >[ -x $SMBCLIENT ] || exit 1 >if [ -e "$credfile" ] >then > mountopts=$mountopts",credentials=$credfile" > smbclientopts="-A "$credfile >else > smbclientopts="-N" >fi >$SMBCLIENT $smbclientopts -gL $key 2>/dev/null \ > | awk -v key="$key" -v opts="$mountopts" -F'|' -- ' > BEGIN { ORS=""; first=1 } > /Disk/ { if (first) { print opts; first=0 }; > if ($2 !~ /.*\$.*/) { > sub(/ /, "\\ ", $2); > print " \\\n\t /" $2, "://" key "/" $2 } > } > END { if (!first) print "\n"; else exit 1 } > ' >
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 249909
:
160134
|
160135
| 204321