Ubuntu Tricks & Useful Commands - RichardForshaw/dev-tools-blog GitHub Wiki
What you want | Command(s) | What it does |
---|---|---|
List all users | lastlog |
Shows all users and when they last logged in |
Enable Samba | Edit /etc/samba/smb.conf Add user with sudo smbpasswd -a user Ensure service is started: sudo service smbd restart
|
Enables you to access files from your host OS |
Set the clock from ntp time | sudo ntpdate pool.ntp.org |
Sets your clock according to the time/date from pool.ntp.org |
Edit /etc/samba/smb.conf and add something like:
[XXX-dev]
comment = XXX Developer
path = /home/XXX/<location>
guest ok = no
browseable = yes
create mask = 0644
directory mask = 0700
This allows access via \\<machine-IP>\XXX-dev\