|
How do I use smbmount without specifying a password every time? I'd like to be able to either map a linux user to a specific set of windows creditials or have samba read the password from it's /etc/samba/private/smbpasswd file, so I only have to specify the username. Is this possible?
|
# ¿ Apr 16, 2007 21:46 |
|
|
# ¿ May 2, 2024 06:39 |
|
covener posted:You can specify the options for these shared directories in /etc/fstab using the options from smbmount manpage (user=foo%bar,uid=1000,...) I'm looking for a way to mount the share without keeping a plaintext password anywhere. The entry in /etc/fstab looks like: //192.168.1.200/share /mnt/share smbfs username=Mashi,rw 0 0 But since the windows share requires a password along with the username, I'm prompted for a password every time. I'd like for it to read the password from /etc/passwd, or /etc/samba/smbpasswd.
|
# ¿ Apr 17, 2007 01:59 |
|
covener posted:Both of those files store 1-way digests of the password -- your password can't be extracted from it and sent to the remote system. Ah ok, thanks mate.
|
# ¿ Apr 17, 2007 03:09 |
|
When using ssh-agent, is there an easy way to connect to an existing ssh-agent session? Let me explain.. Say I start ssh-agent on my desktop, having it launch my window manager (ssh-agent startxfce4). So all the programs that are launched under xfce4 have the correct environment variables set. Then I log in via SSH from somewhere else. The environment variables are not set because I'm not logging in under my xfce4 session. What I can do is find the PID of some process that is under the xfce4 session, and read /proc/{pid}/environ to get the environment variables (and then manually set them with export), but this requres root access and is a bore. Is there another way? Or perhaps there is a good reason why this is not the default behaviour of ssh-agent?
|
# ¿ Oct 24, 2008 13:45 |
|
covener posted:Your shells within xfce will stash it, your new shells will grab the existing agent. I do something similar on cygwin, where I only use standalone rxvt's with no x server or DE. Pretty neat. Using this method you avoid having to start your desktop manager underneath ssh-agent. I wonder why everyone isn't doing it.
|
# ¿ Oct 24, 2008 14:06 |
|
covener posted:I think inheriting it from your xsession is the way to go when you can, I wouldn't ever use this kludge to replace it. I am inheriting it from my xsession, the issue is getting access when you ssh in.
|
# ¿ Oct 24, 2008 19:17 |
|
|
# ¿ May 2, 2024 06:39 |
|
hobofood posted:I'm still new to all this stuff, so it is probable that I have a huge misunderstanding, so please bear with me: Find httpd.conf and see what your actual document root is. It could be a permissions issue, usually Apache has it's own user so check that that user is able to read the file.
|
# ¿ Nov 21, 2008 12:31 |