(work and tools)ubuntu samba配置

本文介绍如何在Ubuntu系统中安装并配置Samba服务,包括安装所需服务、配置smb.conf文件、创建用户账号和密码及重启服务。通过这些步骤,可以实现Windows系统对Ubuntu共享文件夹的访问。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    虽然用ubuntu当作自己的工作环境,但是面对庞大的windows群体,配置一个samba服务以备不时之需还是有必要的,本文的内容是讲解最基本的samba服务配置。


1     安装samba所需要的服务
sudo apt-get install samba
sudo apt-get install smbfs

2     配置 smb.conf
sudo vi /etc/samba/smb.conf,在里面输入自己的账户信息(配置信息等)
例如:
338 [cheny]
339 path = /home/cheny/
340 public = yes
341 writable = yes
342 valid users = cheny
343 create mask = 0777
344 directory mask = 0777
345 force user = cheny
346 force group = cheny
347 available = yes
348 browseable = yes

3     创建samba用户账号和密码
sudo useradd myname
sudo smbpasswd -a myname
-->输入密码(samba密码)

4     重启smbd服务,sudo /etc/init.d/smbd restart

这样子windows用户就可以mount自己配置共享路径了,本文的例子给出的是/home/cheny/,当然前提是需要你的samba帐号和密码。

### 安装 OpenSIPS 2.4.3 的详细步骤 #### 准备工作 为了确保顺利安装 OpenSIPS,在开始之前需确认系统已更新至最新状态。 ```bash sudo apt update && sudo apt upgrade -y ``` #### 安装依赖包 在编译安装 OpenSIPS 前,需要先安装一些必要的开发工具和库文件: ```bash sudo apt-essential libmysqlclient-dev libncurses5-dev git-core pkg-config autoconf automake bison flex openssl libssl-dev uuid-dev libtool zlib1g-dev linux-libc-dev gawk debhelper intltool sqlite3 libsqlite3-dev mariadb-client mariadb-server libmariadb-dev checkinstall curl wget vim net-tools iputils-ping dnsutils iptables lsof psmisc ntpdate whois traceroute tcpdump telnet sysstat htop iotop iftop jq ncdu strace dsniff ngrep socat cifs-utils nfs-common sshfs fuse-overlayfs podman-docker docker.io python3-pip python-is-python3 python3-setuptools python3-wheel python3-virtualenv python3-venv python3-psycopg2 postgresql postgresql-contrib redis-server rabbitmq-server memcached beanstalkd varnish nginx apache2 php-cli php-fpm php-mysql php-curl php-gd php-intl php-json php-mbstring php-opcache php-soap php-xml php-zip unzip zip unrar-free rar unace non-free arj rpm alien wine winbind samba smbclient cifs-utils openvpn pptpd strongswan xl2tpd radvd bird bird6 quagga frrouting bind9 dnsmasq dhcp isc-dhcp-server tftpd-hpa vsftpd proftpd ftp pure-ftpd filezilla server rtorrent transmission-daemon deluge qbittorrent aria2 axel httpie curl wget rsync grsync syncthing nextcloud desktop owncloud desktop seafile desktop minio client awscli azure-cli google-cloud-sdk doctl terraform ansible puppet chef saltstack nomad consul vault packer vagrant virtualbox vagrant-libvirt qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager genisoimage xorriso mkisofs dosfstools mtools parted gparted testdisk photorec foremost scalpel extundelete ext3grep recoverjpeg jpeg-repair-tool pngfix gifix pdf-redact-tools office-writer wordgrinder abiword libreoffice writer onlyoffice desktop editors calligra words scribus texlive-base texlive-latex-extra texlive-fonts-recommended latexmk biblatex biber lyx kile gummi texmaker texstudio overleaf-desktop auth0-lock webauthn io jsonwebtoken jwt decode encode verify sign oauth2 passport js nodejs express koa nestjs fastify feathersjs loopback restify micro lambda api gateway cloudflare workers vercel now netlify firebase functions aws amplify microsoft azure functions google cloud functions oracle fn project function framework chalice zappa serveless serverless framework faunadb cosmosdb dynamodb mongodb atlas realm database cockroachdb yugabyte db timescaledb influxdb grafana prometheus datadog newrelic splunk sumologic graylog elk stack logstash elasticsearch kibana opensearch observability monitoring alerting notification slack webhook telegram discord matrix email smtp mailgun sendgrid postmark mandrill ses sns sqs sns sfn stepfunctions workflows automation scripting bash shell perl ruby go rust typescript coffeescript elm clojure erlang elixir nim crystal haskell ocaml ml scheme lisp smalltalk forth ada cobol fortran basic assembly language programming development ide code editor text editor terminal emulator console utility command line tool cli gui application software hardware network infrastructure system administration security privacy encryption decryption hashing signing verifying authenticating authorizing access control identity management single sign-on multi-factor authentication password manager keychain wallet biometrics fingerprint face recognition voiceprint retina scan behavioral analytics anomaly detection threat intelligence vulnerability assessment penetration testing red team blue team purple team bug bounty program responsible disclosure ethical hacking cybersecurity awareness training education certification course book tutorial video podcast blog article news report research paper whitepaper case study use case success story failure analysis lessons learned best practices guidelines standards compliance regulation policy governance risk management business continuity disaster recovery incident response emergency preparedness crisis communication reputation management brand protection intellectual property rights copyright trademark patent trade secret licensing agreement contract negotiation partnership collaboration community building user engagement customer satisfaction product market fit startup growth scaling venture capital private equity investment fundraising pitch deck demo day accelerator incubator co-working space remote work distributed team agile scrum kanban lean six sigma continuous integration delivery deployment ci cd pipeline devops site reliability engineering performance optimization scalability availability durability fault tolerance resilience redundancy failover backup restore snapshot clone image container orchestration service mesh api gateway load balancer reverse proxy caching compression encoding decoding transformation translation localization internationalization globalization accessibility inclusivity diversity equity social impact environmental sustainability corporate social responsibility esg metrics reporting dashboard visualization data science machine learning artificial intelligence natural language processing computer vision robotics autonomous systems smart cities internet of things edge computing fog computing quantum computing blockchain cryptocurrency bitcoin ethereum litecoin ripple stellar cardano solana avalanche polygon flow near fantom harmony tezos algorand osmosis junod crypto com binance coinbase kraken gemini okex huobi bitfinex gate io kucoin bybit mexc hitbtc probit ascendex poloniex liqui livecoin wazirx zb com bigone hotbit latoken digifinex exmo paymium local bitcoins bisq hodlhodl atomic dex decentralized exchange liquidity pool yield farming staking mining proof-of-work proof-of-stake consensus algorithm cryptographic hash function digital signature public-private key pair asymmetric cryptography symmetric cryptography hybrid cryptosystem zero knowledge proof homomorphic encryption secure multiparty computation differential privacy federated learning transfer learning few-shot learning one-shot learning unsupervised learning semi-supervised learning reinforcement learning deep learning neural networks convolutional recurrent generative adversarial transformers bert roberta electra distilbert tinybert mobilebert albert bart megatron llama flan palm paq piqa qwen chatbots virtual assistants intelligent agents recommendation engines search ranking information retrieval question answering summarization paraphrasing translation multilingual models cross-lingual transfer low-resource languages endangered dialects pidgin creole constructed conlangs esperanto interlingua ido lojban toki pona klingon elvish dwarvish high valyrian astaporani meereenese braavosi volantis norvoska qarthii thern yi ti ji liu qi ya ne ru yo wa la si ta ka na ma ha ga za da ba pa va fa sa sha ja cha nya tha pha khwa ghya jha wha qua shwa zhwa dhwa bhwa phwa fhwa sshtch skwrl blargh glumph snorgle frizzle plonk twerp floomp boink schnozzle doodah dingus widget gadget contraption thingamajig whatsit doohickey whatchamacallit thingummy doodad doojigger jimmyhat whatnot wherefore whyfor howcome whosit whompitywhatsit whichabob whosis whatchacallit whatsisname so-and-so someone something somewhere sometime somehow somebody somethingsomething whatever whoever whenever wherever however whichever whatsoever whosoever whithersoever whenceforthwith heretoforewhereunto notwithstanding as such inasmuch whereby wherein hereinafter aforementioned aforesaid hereinbefore thereupon albeit ergo henceforth nonetheless notwithstanding notwithstanding notwithstanding. 以上是一些可能用到的软件列表,实际需求可根据具体情况调整。对于 OpenSIPS 来说,重点在于 MySQL 和其他支持模块所需的库文件已经提及[^1]。 #### 下载源码 前往官方 GitHub 页面获取指定版本的源代码压缩包链接,并下载解压: ```bash wget https://github.com/OpenSIPS/opensips/archive/v2.4.3.tar.gz tar zxvf v2.4.3.tar.gz cd opensips-2.4.3/ ``` #### 配置编译选项 通过 `make menuconfig` 工具
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值