V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  jasonyang9  ›  全部回复第 100 页 / 共 118 页
回复总数  2352
1 ... 96  97  98  99  100  101  102  103  104  105 ... 118  
2018 年 5 月 25 日
回复了 Acoffice 创建的主题 小米 大家如何看待小米披露的隐私政策?
2018 年 5 月 25 日
回复了 Acoffice 创建的主题 小米 大家如何看待小米披露的隐私政策?
可以要求小米披露到底收集了哪些关于你的信息
2018 年 5 月 24 日
回复了 ionblue 创建的主题 问与答 有一个 atom 的小主机,拿来做什么好呢?
CentOS,PPPoE,IP Forwarding,IP Masquerade,firewalld,bind9,dhcpd,Apache, MariaDB, PHP, Python,ownCloud,...

这种配置根本不考虑 MS 的系统
2018 年 5 月 23 日
回复了 mmnnyycc 创建的主题 程序员 php7 怎么安装 mysqli 拓展?
不都是 PDO 么
2018 年 5 月 23 日
回复了 gelilaohuang 创建的主题 程序员 Bug 鼻祖
想到这这个梗:it's not a bug, it's a feature!
2018 年 5 月 23 日
回复了 AllOfMe 创建的主题 程序员 驻场开发是怎样的一种体验?
@cent777 #10 所以这是段子?
2018 年 5 月 22 日
回复了 R18 创建的主题 全球工单系统 可以!这很阿里!
宠物而已,正常
呵呵,墙国
宁愿用台旧的或二手笔记本,跑正宗的 CentOS,配各种服务来玩
吓得赶紧连了一下自己的吃灰搬瓦工
2018 年 5 月 22 日
回复了 Tarkky 创建的主题 职场话题 陆奇为啥离职
```
zone "baidu.com" {
type master;
file "/etc/named/zones/dummy-block";
allow-update { "none"; };
};
```
2018 年 5 月 22 日
回复了 alvin666 创建的主题 Linux 为什么 samba 的配置这么蛋疼?
samba 共享 + 磁盘配额有什么好办法?哪位大大指点下?
2018 年 5 月 22 日
回复了 alvin666 创建的主题 Linux 为什么 samba 的配置这么蛋疼?
@tees #28

之前测试过的配置,参考下。

# Anonymous and Selected Users

* Anonymous (nobody / guest) has the READONLY permission
* Authorized users (in sambausers group) have the READ/WRITE permission

## Add necessary group

```
# groupadd sambausers
```

Check

```
# cat /etc/group
```

## Add necessary users

Remove them first

```
# userdel -f sambauser1
# userdel -f sambauser2
```

Add

```
# useradd -m sambauser1 -G sambausers
# useradd -m sambauser2 -G sambausers

# echo 1234 | passwd --stdin sambauser1
# echo 1234 | passwd --stdin sambauser2
```

Check

```
# cat /etc/passwd
```

## Create directory in system

```
# mkdir -p /srv/ssharea
```

## Change directory's group

```
# chgrp sambausers /srv/ssharea
```

## Change directory's mode

(Users who in sambausers group can create file/directory in project)
(and these files/directories' owner are themself, group are sambausers)
(Give anonymous (nobody / guest) the ability to view its contents)

```
# chmod 2775 /srv/ssharea
```

## Add Samba users (and password)

```
# pdbedit -a -u sambauser1
```

(type password twice to create)

```
# pdbedit -a -u sambauser2
```

(type password twice to create)

## Edit /etc/samba/smb.conf

```
# vi /etc/samba/smb.conf

[global]
workgroup = WORKGROUP
netbios name = LINUXSERVER
server string = This is a Linux Samba Server

passdb backend = tdbsam

unix charset = utf8
; display charset = utf8
dos charset = cp932

log file = /var/log/samba/log.%m
max log size = 50

security = user
guest account = nobody
map to guest = bad user

ntlm auth = yes

load printers = No


[ssharea]
comment = SSHAREA
path = /srv/ssharea
browseable = Yes
writable = No
write list = @sambausers
guest ok = Yes
```

## Start

```
systemctl start smb
systemctl start nmb
```
2018 年 5 月 22 日
回复了 alvin666 创建的主题 Linux 为什么 samba 的配置这么蛋疼?
试试配个 Postfix
2018 年 5 月 21 日
回复了 shuangdeyu 创建的主题 程序员 看公司/别人代码需要每一句都读懂吗
@xiaochocking #13

```
getPwrValue4( ){
// 加权平均返回 getPwrValue, getPwrValue2 and getPwrValue3 的结果
}
```
2018 年 5 月 21 日
回复了 shuangdeyu 创建的主题 程序员 看公司/别人代码需要每一句都读懂吗
我怎么觉得你心里已经有答案了
2018 年 5 月 21 日
回复了 viso1998 创建的主题 问与答 家用电脑用做远程桌面主机可行吗?
另外不一定要 24*7 跑的,目前的主板和网卡都支持 Wake on LAN,配合 Router 应该可以

https://lifehacker.com/5786791/rule-your-computer-from-afar-by-setting-up-wake-on-lan
2018 年 5 月 21 日
回复了 viso1998 创建的主题 问与答 家用电脑用做远程桌面主机可行吗?
羡慕有公网 IP 或可以做穿透的
2018 年 5 月 21 日
回复了 nine99 创建的主题 问与答 同样一个页面不同浏览区渲染出来感觉就不一样
用取色工具看一下咯
1 ... 96  97  98  99  100  101  102  103  104  105 ... 118  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5678 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 52ms · UTC 01:55 · PVG 09:55 · LAX 17:55 · JFK 20:55
♥ Do have faith in what you're doing.