`

window 文件共享给 SUSE Linux

阅读更多

Access Windows Shares from Linux

Q. How do I Access Windows share from Linux command prompt? I would like to be able to access shared folders on Windows machines from my Linux system.

A. There are two ways. Use command line tool called smbclient or you can mount windows shares the mount command. Another option is use GUI tools. Please refer previous articles about access windows share from Linux:

( a ) Mount Windows share using mount command

This is simple way to share data between windows and linux system. You would like to access MS-Windows share called //windowsserver/sharename by mounting to /mnt/win directory under Linux system. Type the following command (replace username, windows server name, share name and password with actual values):

# mkdir -p /mnt/share
# mount -t cifs -o username=winntuser,password=mypassword //windowsserver/sharename /mnt/share
# cd /mnt/win
# ls -l

 For the share //windowsserver/sharename to be automatically mounted at every system start (after reboot), insert an option in the file /etc/fstab:

# vi /etc/fstab 

 Append following line (written in a single line)

//windowserver/share /mnt/share cifs
auto,gid=users,fmask=0664,dmask=0775,iocharset=iso8859-15, credentials=/etc/sambapasswords 0 0

 Next create the password file /etc/sambapasswords:

#vi /etc/sambapasswords 

 Now add following content:

username = winntuser
password = mypassword

 Save and close the file. Make sure only root can access your file:

# chown 0.0 /etc/sambapasswords
# chmod 600 /etc/sambapasswords

  • -t smbfs : File system type to be mount (outdated, use cifs)
  • -t cifs : File system type to be mount
  • -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box
  • //windowserver/share : Windows 2000/NT share name
  • /mnt/win Linux mount point (to access share after mounting)

 

分享到:
评论

相关推荐

    SUSE Linux Enterprise Server 11 管理员手册

    - **概念理解**:一旦使用`supportconfig`生成了系统信息文件,用户需要将其发送给Novell技术支持团队。 - **提交方式**:可以通过电子邮件、FTP等方式提交这些文件。 - **注意事项**:确保提交前已经加密敏感信息,...

    SuSE Enterprise Linux 10下面启动xdmcp

    在 SuSE Enterprise Linux 10 (SUSE Linux) 中启用 X Display Manager Control Protocol (XDMCP) 可以让管理员实现跨网络的远程图形化登录,这对于远程维护系统或共享图形界面资源非常有用。本文将详细介绍如何在 ...

    Red Hat Linux 9.0基础教程

    Linux具有许多优点,如开放性、多用户、多任务、多平台、虚拟内存、X Window系统、强大的网络功能、动态链接共享库、设备独立性、支持多种文件系统、同IEEE POSIX.1标准兼容、非专有资源代码、费用低于大多数UNIX...

    第1章 Linux 系统概述与安装

    Linux系统的特点包括完全的多任务处理能力、虚拟内存管理、X Window图形界面系统、内置网络支持、共享库机制、POSIX.1标准兼容性、开放源代码以及丰富的GNU软件支持。这些特点使得Linux在各种领域得到广泛应用,如...

    2_Linux操作系统简介.ppt

    发行版本则是基于内核版本定制的,包含额外的应用软件和服务,例如国外的Red Hat Linux、SuSE Linux、Debian Linux和Mandrake Linux,以及国内的红旗Linux、中标普华Linux、共创桌面Linux和冲浪Linux等,每个发行版...

    Linux 整理笔记

    3. 文件格式:Linux文件系统采用文本格式,而Windows则使用二进制格式。 4. 稳定可靠:Linux内核非常稳定,不易崩溃,使得Linux成为非常可靠的操作系统。 5. 小巧的内核:Linux内核非常小,甚至可以存储在软盘上。 6...

    Linux系统管理员培训材料

    包括网络配置、NFS服务、FTP服务、Samba服务(用于Windows与Linux文件共享)、HTTP服务(Web服务器配置)以及SSH服务(安全远程登录)。 11. X Window系统: 学习如何配置和管理图形用户界面,包括桌面环境、窗口...

    计算机三级考试知识点:Linux网络操作系统.docx

    - **Novell的SUSE Linux**:SUSE Linux Enterprise 11提供了虚拟化、关键业务支持、UNIX移植和互操作能力等特性,适用于企业级环境。 - **Red Hat的Linux**:Red Hat Enterprise Linux强调自动化、降低成本、广泛...

    Linux概述及安装

    - **多用户**:允许多个用户共享系统资源,每个用户拥有对各自文件和设备的特定权限。 - **多任务**:能够同时执行多个程序,各程序独立运行。 - **良好的用户界面**:提供命令行界面和图形用户界面(GUI),其中 ...

    计算机三级考试知识点:Linux网络操作系统.pdf

    在操作系统分类中,Linux属于自由软件,与商业软件(如Windows和NetWare)和共享软件形成对比。Linux的不同发行版(如Red Hat、SUSE、Turbo Linux等)提供了丰富的功能、网络支持、图形或命令行界面、开发工具以及...

    2020年计算机三级网络技术知识点归纳:Linux网络操作系统.docx

    - **SUSE Linux**:Novell公司的SUSE Linux Enterprise 11,支持虚拟化、关键业务、UNIX移植和互操作性。 - **Red Hat Linux**:Red Hat Enterprise Linux是企业级的Linux发行版,注重自动化、降低成本、提供全面...

    UNIX/Linux 系统管理技术手册(第四版)

    接着逐一讲解Linux上的关键网络应用,如邮件系统、NFS、文件共享、Web托管、Internet服务等,并设有专门章节介绍网络硬件、网络管理和调试技术以及系统安全性。 3. **高级系统管理主题**:这部分内容包括X窗口系统、...

    《Linux操作系统》第2版完整习题答案-电子工业出版社.pdf

    - Linux文件系统通常遵循FHS(Filesystem Hierarchy Standard),关键目录包括`/bin`(基本命令)、`/etc`(配置文件)、`/home`(用户主目录)、`/usr`(用户应用软件)等。 - 工作目录用`.`表示,父目录用`..`...

    linux 命令英文全称

    YaST(Yet Another Setup Tool)是SUSE Linux发行版中使用的一套系统配置和管理工具。 #### Apache="apatchy"server Apache是一个流行的Web服务器软件,提供HTTP服务。“apatchy”是对其名称的一种幽默解读。 #### ...

    Linux术语全称文本下载

    4. **/lib (LIBrary)**:包含系统运行时所需要的共享库文件。 5. **/proc (PROCesses)**:这是一个虚拟文件系统,用于提供运行中的进程信息。 6. **/sbin (Superuser BINaries)**:超级用户使用的管理命令存放于此。...

    Linux扫盲(初学者的选择)

    - **选择合适的版本**: 目前市场上有很多不同的Linux发行版,如Red Hat Linux(包括工作站版和企业版)、SUSE Linux以及Ubuntu等。根据不同的需求选择合适的版本至关重要。例如,在高性能计算(HPC)领域,Red Hat ...

    linux tutorial

    - **文件系统**: Linux支持多种文件系统,如ext2、ext3、ext4等。 - **日志文件系统**: ReiserFS是一种高性能的日志文件系统,可以提高系统的稳定性和性能。 - **准备工作**: 在安装Linux之前,需要准备必要的硬件...

    小白Linux操作系统简单介绍.docx

    Linux发行版包含了操作系统内核、开发工具、数据库、Web服务器、图形界面、办公套件等一系列软件,如Apache、Nginx、X Window系统、GNOME或KDE桌面环境等。 Richard Stallman博士建议将Linux称为GNU/Linux,以强调...

    linux Oracle 安装

    Oracle对Linux内核参数有特殊需求,例如`kernel.shmall`、`kernel.shmmax`等,以支持共享内存的分配。这些参数需要在`/etc/sysctl.conf`中设置,并使用`sysctl -p`命令应用更改。此外,还要调整文件描述符限制、...

Global site tag (gtag.js) - Google Analytics