xmanager使用小结=======================================================================
如果使用的是gnome 1。vi /etc/inittab 添加 x:5:respawn:/usr/bin/gdm 2.修改/etc/X11/gdm/gdm.conf,找到下面的信息: [xdmcp] Enable=0 或Enable=false 修改为: [xdmcp] Enable=1 或Enable=true 并确保以下信息存在: Port=177 3.重启机器 ok
如果使用的是kde
1。vi /etc/X11/xdm/xdm-config . 更改 DisplayManager.requestPort: 0 ==>; !DisplayManager.requestPort: 0 vi /etc/X11/xdm/Xaccess 2。更改: #* #any host can get a login window ==>; * #any host can get a login window 3。vi /etc/X11/xdm/kdmrc, /usr/share/config/kdm/kdmrc or /etc/opt/kde2/share/config/kdm/kdmrc . 更改enable设置为true。 重启机器
===========================================================================================
I'm far from an expert but the following worked for me,
Create a user account with the least amount of privalages needed (in my case "videorecorder") allow that user to have network shares create a directory to be shared (/var/spool/recordings) set up the sbmpasswd for that user
put the shared folder details into your smb.conf
[linux_video] comment = Shared Video valid users = videorecorder public = yes writable = yes browseable = yes path = /var/spool/Recordings/
then restart the server (>service smb restart)
you might need to put "encrypt passwords = yes" in as well
On the windows machine(s)
Windows Explorer > Tools > map network drive and then browse the network and find a shared folder called 'linux_video' then tick the connect at login box, and then click the connect using a different user name and enter the username and password. ( user=videorecorder in my case and their password) The shared folder should then just appear as another drive letter under Windows.
# service network restart # service smb restart # service iptables restart
smb.conf sudo mbpasswd -a root 删除samba用户密码 smbpasswd -a root 添加samba用户密码
[diska] comment = Shared Folder valid users = root public = yes writable = yes browseable = yes path = /diska encrypt passwords = yes security = share guest ok = yes
[diskb] comment = Shared Folder valid users = root public = yes writable = yes browseable = yes path = /diskb encrypt passwords = yes security = share guest ok = yes
[diskc] comment = Shared Folder valid users = root public = yes writable = yes browseable = yes path = /diskc encrypt passwords = yes security = share guest ok = yes
ssh root@**.**.**.** scp -r root@**.**.**.**:/abc/abcd /cygdrive/d