josesantorcuato / samba- Goto Github PK
View Code? Open in Web Editor NEWGuía de instalación samba para compartir carpetas Ubuntu 16.04, también incluye creación de grupo e inicio automático. Por José Santorcuato Tapia.
Guía de instalación samba para compartir carpetas Ubuntu 16.04, también incluye creación de grupo e inicio automático. Por José Santorcuato Tapia.
INSTALACIÓN Y CONFIGURACIÓN SAMBA, PARA CREAR SERVIDOR DE ARCHIOS Y CARPETAS JOSÉ SANTORCUATO TAPIA [email protected] CHILE 207 El siguiente manual está diseñado para inastalación sobre Ubuntu 16.04 LTS versión escritorio AMD64.Permite participar en red local e intercambiar archivos a usuarios linux, windows, osx. Por defecto UBuntu 16.04 trae la posibilidad de compartir una carpeta o las que quiera, ubicadas en cualquier directorio. Para esta instalación utilizaremos /home/nombreusuario/Documentos/compartida , la carpeta todavía no la haré. Creamos un usuario "usuariosamba" le daremos luego privilegios root y agregamos a samba sudo adduser usuariosamba Pedrirá contraseñas, luego puede omitir nombre, dirección etc Ahora lo agregamos a samba smbpasswd -a usuariosamba Creamos carpeta para compartir y error No está usuariosamba en sudoers sudo gedit gedit /etc/sudoers # User privilege specification root ALL=(ALL:ALL) ALL usuariosamba ALL=(ALL:ALL) ALL Lo agregas donde está el root AHora lgin desde usuariosamba y corre el comando mkdir -p compartida Con botón derecho del mouse sobre la carpeta cambia permitir que otros puedan leer y escribir, modificar compartición. error* Seguramente arrojará error 255 debes editar el archivo de configiración samba sudo gedit /etc/samba/smb.conf Bajo [global] agrega usershare owner only = false Guarda el archivo y trata de repetir el mofificar compartición sobre la carpeta permitiendo que otro puedan leer y escribir Nuevamente edita el archivo samba y agrega sudo gedit /etc/samba/smb.conf workgroup = TUGRUPO Y sobre [printers] agrega [compartida] comment = compartida path = /home/nombreusuario/Documentos/compartida browseable = yes guest ok = no writeable = yes create mask = 0777 directory mask = 0777 valid users = usuariosamba Reincia el servicio sudo systemctl restart smbd Ahora vamos al archivo local, este archivo ejecuta cada vez que se inicia el sistema lo que esté adentro, en este cao queremos ejecute al iniciar el servidor samba. sudo gedit /etc/rc.local Agrega lo siguiente: /bin/sh /home/nombreusuario/sambarun.sh #esta es la ruta del script que creamos más arriba Debe quedar similar a esto el archivo #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /bin/sh /home/nombreusuario/sambarun.sh exit 0 Guarda y reinicia...estamos listos!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.