I downloaded a Ubuntu 8.10 VMPlanet.net image with MySQL server, but the root password was set to something other than the standard vmplanet.net password. Logging in without a password or username didn’t give me enough permissions to set my own users and change passwords. Here is the solution for this problem (thanks Keystone IT Tech!). Continue reading
Category Archives: Ubuntu
SAMBA Server and Ubuntu
Install SAMBA Server on Ubuntu Server with the following command:
sudo apt-get install samba smbfs
Next, we need to set up the share in /etc/samba/smb.conf:
[global]
hosts allow 192.168.0 #allows everyone in my house to access all the shares
[share]
comment = My Test Share
writeable = no
locking = no
path = /share/
public = yes
Next we need to add smb users, which are already existing users on the linux box:
sudo adduser joe
sudo smbpasswd joe
Finally, (re)start the server:
sudo /etc/init.d/samba start|restart
CVS and Ubuntu (and some WordPress weirdness)
Managing users/groups for CVS. Here’s how to allow user joe to modify code in a CVS directory. Depending on how your permissions were set up, the following commands may or may not have to be run with sudo.
First, we need to create a group dev that will eventually have rw access to the CVS directory:
groupadd dev
Then, we need to add user joe to the dev group:
usermod -G dev -a joe
The -G flag adds joe to the dev group, while the -a flag assures that joe retains his original group as well. Without the -a flag, joe would only be a member of dev, erasing his previous group.
Then, change the group ownership of the target directory, in our case /cvs/test/:
chgrp -R dev /cvs/test/
Finally, add group rwx permissions for the dev group:
c hmod 774 -R /cvs/test/
Note: Apparently, WordPress does not allow me to publish the word “ch”+”mod” as one word. A page comes up with “An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server.” and of course all my work is gone.
In any case, in the last line above, the “c” and the “hmod” should be one word.