Samba mount
Bob T. Hung
bthung at adelphia.net
Sun Feb 13 01:31:36 UTC 2005
> i want to connect to the domain how can i do it i have win2k domain and
> i use fedora and i am domain user
use system-config-authentication and input your domain-settings in smb
and winbind, this works fine. if you need to
mount a win-share do:
- create a directory for the mount in your homedir, eg. windoze
- in your homedir, create a file called .smb (the dot makes it
invisible) -> don't do this as root
- set 'chmod 600 .smb'
- content of .smb (vi .smb):
username=[your windoze-username]
password=[your windoze-password]
give your users rights to mount shares using visudo. you will find some
somples for this, doing visudo as root.
afterwards, you can handle this by shell-script or in the shell (the
shell-scripts contains the line, it's easier to
call 'winsetup' rather than always that line:
content of "winsetup"
sudo mount -t cifs -o credentials=/$HOME/.smb,rw,uid=$UID //server/share
/home/$USER/windoze
remember, if using a shellscript:
-chmod 700 or 770 your shellscript, otherwise it is not executable
-if you don't copy your script to a path in your $PATH (echo $PATH), you
will have to launch your app with the full
path. so, placing it in /usr/local/bin or /usr/bin/ is not a bad idea.
HTH
Roger
--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
More information about the fedora-list
mailing list