prefer /etc/motd vs. /etc/passwd

Robert Ames committed 2024-02-14 11:13:51 -06:00
1 parent a567d5a2a7
commit 26ac6ae3e3
1 file changed
+11 -11
+11 -11
@@ -43,31 +43,31 @@ Bucket 's3://newbucket/' created
$ s3cmd ls s3://
2019-01-01 01:30 s3://newbucket
$ s3cmd put /etc/passwd s3://newbucket
$ s3cmd put /etc/motd s3://newbucket
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
upload: '/etc/passwd' -> 's3://newbucket/passwd' [1 of 1]
upload: '/etc/motd' -> 's3://newbucket/motd' [1 of 1]
6804 of 6804 100% in 0s 87.93 kB/s done
$ s3cmd get s3://newbucket/passwd
download: 's3://newbucket/passwd' -> './passwd' [1 of 1]
$ s3cmd get s3://newbucket/motd
download: 's3://newbucket/motd' -> './motd' [1 of 1]
6804 of 6804 100% in 0s 595.33 kB/s done
# change the file
$ vi passwd
$ vi motd
$ s3cmd sync passwd s3://newbucket/
$ s3cmd sync motd s3://newbucket/
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
upload: 'passwd' -> 's3://newbucket/passwd' [1 of 1]
upload: 'motd' -> 's3://newbucket/motd' [1 of 1]
22 of 22 100% in 0s 6.45 kB/s done
Done. Uploaded 22 bytes in 1.0 seconds, 22.00 B/s.
$ s3cmd ls s3://newbucket/
2019-01-01 01:32 22 s3://newbucket/passwd
2019-01-01 01:32 22 s3://newbucket/motd
$ s3cmd del s3://newbucket/passwd
delete: 's3://newbucket/passwd'
$ s3cmd del s3://newbucket/motd
delete: 's3://newbucket/motd'
$ s3cmd rb s3://newbucket
Bucket 's3://newbucket/' removed
```
```