I'm beginning to deal with more than one user on my system (it's a VPS serving some sites) and I need to make sure I understand how group permissions work.
Here's my setup:
I have an account named "admin" .. it's basically the primary account that is used for serving most of the sites that I control myself.
Now, I added a second account named "Ville" as one of my users wants to be able to administer that site.
So, I can do this the easy way and just chown their domains folder under the ville user and viola, they have permission to do whatever they need be and so forth.
However, let's say I want to also give the admin user access to the files (modifying and all) .. how can I put both users into the same group and give them both permission?
I've tried doing:
sudo usermod -a -G admin ville
To add the ville into the admin group, but ville still cannot edit files by admin. Permissions for the primary directory for the ville user are read/write for both owner and group, and the current group for the files is admin:admin ..
But ville still can't write into the directory.
So, what should I be doing here to get this right and secure at the same time?
Thank you.
I need to download a particular NNTP group.
I do not need to setup any crons, put group contents in /opt and other stuff.
Just run <fetch-nntp> <server> <group-name> <output-dir> and be done with it without putting a lot of garbage in the system.
If that <fetch-nntp> would not fetch the same messages on the second run — fine. But I can live without it.
All NNTP clients that I've looked at are trying to be a NNTP server as well.
Is there something simpler that is suitable for my needs?
I've tried the 64bit version and found I was constantly hitting a brick wall trying to get 32bit stuff to run; I'd previously used PAE on 9.04 without any issues so figured I'd give it a shot.
However, on 9.10 it seems PAE or the process of enabling PAE breaks the nvidia drivers/module somewhat as performance is terrible; I can't even enable desktop effects and there's lots of artifacting on random controls.
Disabling the pae image and rebooting fixes the issue however I'm then stuck with "only" 2.7Gb of ram and unable to use the full 8gb that's installed.
Is there somthing special I need to do when using pae and nVidia drivers or should I be using 64bit and just figure out how to force run 32bit packages? :-p
I am trying to connect to my webserver via ssh but I can't. When I insert the password nothing happens . This is what I see:
# ssh [email protected][email protected]'s password:
Why ? In iptables there are no rules. Please help :(
I have EXIM running on a server taht I am trying to decommision (but I still have stuff I need to move off).
$ sudo /etc/init.d/exim4 stop
* Stopping MTA [ OK ]
* ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size,
mail system possibly broken
2011-02-01 19:18:37 string too large in smtp_notquit_exit()
How can I stop exim from running, and accepting mail on port 25.
I've added an user with name zenoss, and set export ZENHOME=/usr/local/zenoss in ~/.bashrc under /home/zenoss, and when using echo $ZENHOME, it could show /usr/local/zenoss
When install zenoss, I switched to zenoss and then run install.sh under zenoss-4.2.0/inst, when it tries to run Tests, the error occured.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.zenoss.utils.ZenPacksTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.045 sec <<< FAILURE!
Running org.zenoss.utils.ZenossTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.71 sec
Results :
Tests in error:
testGetZenPack(org.zenoss.utils.ZenPacksTest): No valid ZENHOME could be found.
testGetPackPath(org.zenoss.utils.ZenPacksTest): No valid ZENHOME could be found.
testGetAllPacks(org.zenoss.utils.ZenPacksTest): No valid ZENHOME could be found.
Tests run: 6, Failures: 0, Errors: 3, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Zenoss Core ....................................... SUCCESS [27.643s]
[INFO] Zenoss Core Utilities ............................. FAILURE [12.742s]
[INFO] Zenoss Jython Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.586s
[INFO] Finished at: Wed Sep 26 15:39:24 CST 2012
[INFO] Final Memory: 16M/60M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8:test (default-test) on project utils: There are test failures.
[ERROR]
[ERROR] Please refer to /home/zenoss/zenoss-4.2.0/inst/build/java/java/zenoss-utils/target/surefire-reports for the individual test results.
Is it possible to create a symlink to a directory, like /var/lib/tomcat6/webapps/MyWar that I can access from everywhere? I want to be able to say cd myapp from anywhere in the directory tree and go to that directory. Is it only possible in the directory where I create the symlink?
Do I have to update my ~/.bashrc file to include an alias like: alias myapp="cd /var/lib/tomcat6/webapps/MyWar" and then just type myapp from anywhere? What is the best way to handle this situation so I don't always have to type in the long directory? I also want to be able to use that parameter in say a copy command, so the alias wouldn't help in that situation. Hopefully I can do something similar where ~ maps to the home directory in any command.
I'd like a simple and secure system to have allow users in our network to have their account (e.g., 'myname') work on every machine in the network (e.g., such that they could ssh to any machine and have the same userid, mounted smb share). Any suggestions?
I installed the apache dev headers:
sudo apt-get install apache2-prefork-dev
Downloaded and compiled the module as outlined here: http://tn123.ath.cx/mod_xsendfile/
Added the following line to /etc/apache2/mods-available/xsendfile.load:
LoadModule xsendfile_module /usr/lib/apache2/modules/mod_xsendfile.so
Added this to my VirtualHost:
<VirtualHost *:80>
XSendFile on
XSendFilePath /path/to/protected/files/
Enabled the module by doing:
sudo a2enmod xsendfile
Then I restarted Apache. Then this code still just provides me with an empty file with 0 bytes:
file_path = '/path/to/protected/files/some_file.zip'
file_name = 'some_file.zip'
response = HttpResponse('', mimetype='application/zip')
response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(file_name)
response['X-Sendfile'] = smart_str(file_path)
return response
And there is not in the Apache error log that pertains to XSendFile. What am I doing wrong?
*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
-A ufw-before-input -i tun0 -j ACCEPT
-A ufw-before-output -i tun0 -j ACCEPT
-A ufw-before-forward -s 10.8.0.0/24 -j ACCEPT
-A ufw-before-forward -d 10.8.0.0/24 -j ACCEPT
This input into my before.rules file stops me being able to ping the outside world. Before its fine i can ping google.co.uk after cant get out. Is there something wrong in my syntax here or what is the issue...? Im just trying to NAT my VPN so i can get internet access. Any thoughts would be greatly appreciated.
Thanks
William
Hello i want to show the number of lines, words and characters of all configuration files "/ Etc / * conf" (command "wc"). How can i modify the command to not view the messages error.
Hello all. Subject really says it all. When I try to click on any track, Amarok rapidly moves through the playlist, pulling external information (wikipedia etc) for each song, but not playing it. I feel like it might be a problem with my sound card or driver or something, but all other media players work fine. I can play sounds from within Amarok when I test different sound devices (they all play). I removed the program and re-installed it and still no luck. Any ideas?
Hello all. Subject really says it all. When I try to click on any track, Amarok rapidly moves through the playlist, pulling external information (wikipedia etc) for each song, but not playing it. I feel like it might be a problem with my sound card or driver or something, but all other media players work fine. I can play sounds from within Amarok when I test different sound devices (they all play). I removed the program and re-installed it and still no luck. Any ideas?
I'm trying to get Redmine + Backlogs work, so for starters I took a virtual appliance with Redmine from Turnkey Linux (http://www.turnkeylinux.org/redmine) and installed Backlogs on top of it, following the installation instructions (http://www.redminebacklogs.net/en/installation/ - used method #2). It seems to have installed ok, but when I go to the "Backlogs" tab and attempt to create some stories, this is what I get - first shows some kind of error/warning icon, others continue to display "in progress" icon indefinitely (can't post a screenshot, unfortunately, but you can take a look at it here: http://www.redmine.org/attachments/5329/Backlogs.jpg). None of the stories get actually created - leaving this tab and returning back to it shows empty backlogs.
So.. what am I doing wrong, and how to fix this?
I have the following Graphics card info:
>lspci | grep VGA
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)
And I need to enable compiz, even with less moves :), How can I?
when i type in terminal command are working fine
root@syscomp:/var/www/WebSite2# xsp4
xsp4
Listening on address: 0.0.0.0
Root directory: /var/www/WebSite2
Listening on port: 9000 (non-secure)
Hit Return to stop the server.
but i m using script in /etc/init/GPS_WebSite.conf
when the script are running fine, but not running in background when the script run one time and then closed,
that is why my mono server are not running all the time,
this is my GPS_WebSite.conf script, what i need to change to be running forever in background?
start on login-session-start
script
exec > /tmp/debug-my-script.txt 2>&1
sleep 10
cd /var/www/WebSite2
xsp4
end script
Is there a way I can determine if hardware virtualisation is enabled in Karmic? I know my processor is capable of it (from knowing it's an AMD Athlon 64 x2 & via something coming out when I type egrep '(vmx|svm)' --color=always /proc/cpuinfo), but I can't tell if I need to flash my bios to enable it.
I'm trying to run symfony on my apache installation (I'm using xampp for the whole package) and it keeps giving me a 403 error every time I try to access my website.
I've got vhosts set up with the following:
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/opt/lampp/htdocs"
DirectoryIndex index.php
<Directory "/opt/lampp/htdocs">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName servername.localhost
DocumentRoot /home/me/web/server/web
DirectoryIndex index.php
Alias /sf "/lib/vendor/symfony/data/bin/web/sf"
<Directory "/home/me/web/server/web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
<Directory "/lib/vendor/symfony/data/bin/web/sf">
Allow from All
</Directory>
I've also added "127.0.0.1 servername.localhost" in my hosts file.
When I try to access "servername.localhost" it just gives me a 403 error. I've chmod'd 777 the symfony directory and my website directory in my home directory and used './symfony project:permissions' to let symfony check that permissions are set up correctly but still not result.
If I move my website directory into "/opt/lampp/htdocs" then it will serve it from there but still has problems access the symfony stuff such as the debug toolbar.
Any help would be appreciated.
/media/MYDISK is where my hard drive is mounted automatically. I created a symlink using:
ln -s /media/MYDISK /home/camilo/MYDISK
chmod 777 /home/camilo/MYDISK
I'm setting up smb.conf like this:
[myshare1]
comment = external disk
browsable = yes
path = /home/camilo/MYDISK
guest ok = yes
read only = no
create mask = 0775
Also, in the [global] section I tried adding the following lines:
follow symlinks = yes
wide links = yes
unix extensions = no
The problem is that when browsing the shared folder in Windows 7, I get a "\\etc\myshare1 is not accessible" error.
When pointing the path to a regular folder it works fine. Also, when I point it directly to /media/MYDISK, it shows the same error.
EDIT: to make it more interesting, I have no graphical interface, so I need to touch the config files directly..
My Acer Aspire 1810TZ laptop suspends fine but wakes up on any slight key-press. I would like to disable this behaviour. I read that it involves disabling something in the /proc/acpi/wakeup but SLPB does not seem to be listed at all.
root@1810TZ:/etc# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
UHC0 S3 disabled pci:0000:00:1d.0
UHC1 S3 disabled pci:0000:00:1d.1
UHC2 S3 disabled pci:0000:00:1d.2
UHCR S3 disabled
EHC1 S3 disabled pci:0000:00:1d.7
UHC3 S3 disabled pci:0000:00:1a.0
UHC4 S3 disabled
UHC5 S3 disabled
EHC2 S3 disabled pci:0000:00:1a.7
EXP1 S4 disabled pci:0000:00:1c.0
PXSX S4 disabled pci:0000:01:00.0
EXP2 S4 disabled
PXSX S4 disabled
EXP3 S4 disabled
PXSX S4 disabled
EXP4 S4 disabled pci:0000:00:1c.3
PXSX S4 disabled pci:0000:02:00.0
EXP5 S4 disabled
PXSX S4 disabled
EXP6 S4 disabled
PXSX S4 disabled
However, the relevant bits seem to be detected from dmesg.
[ 0.357628] ACPI: AC Adapter [ACAD] (on-line)
[ 0.357749] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[ 0.357754] ACPI: Power Button [PWRB]
[ 0.357817] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input1
[ 0.359319] ACPI: Lid Switch [LID0]
[ 0.359390] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2
[ 0.359394] ACPI: Sleep Button [SLPB]
[ 0.359475] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[ 0.359479] ACPI: Power Button [PWRF]
Not quite sure what to do next.
On my server the filesystem includes these partitions:
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 4.6G 929M 3.5G 21% /
/dev/sda5 76M 20M 53M 27% /boot
/dev/sda8 449G 199M 426G 1% /home
/dev/sda7 4.6G 4.4G 0 100% /var
(Output from df -ah)
I'm storing the web sites and databases under /var and as you can see it's got full. The /home folder just has basic user directories and nothing else so I'd like to repartition the server so that /dev/sda8 is about 5GB, with the rest going to dev/sda7.
What's the easiest way to do this via command line (i.e. SSH)?
I already have Java 1.6, but I need to test something with 1.5.
I have downloaded the .bin file from http://java.sun.com/javase/downloads/index_jdk5.jsp using the Sun Download Manager.
Now I want to create a deb file from this bin file:
$ fakeroot make-jpkg java_ee_sdk-5_01-linux.bin
Creating temporary directory: /tmp/make-jpkg.Zpm1Y7LbZ0
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
Detected Debian build architecture: i386
Detected Debian GNU type: i486-linux-gnu
No matching plugin was found.
Removing temporary directory: done
How can I fix the "No matching plugin was found." error?
The command loadkeys dvorak '' ctrl:nocaps fires errors, apparently due to no sudo access, such as kdskbent: operation not permitted. The command dpkg-reconfigure is not permitted. How can I manually change the keyboard layout in console?
I installed the Guest Additions, installed the isight-firmware-tools by using the AppleUSBVideoSupport file but I still can't get access to the iSight webcam.
When I launch vlc v4l2:///dev/video0 I get the following errors:
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x92d492c] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")
(process:2922): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(vlc:2922): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(vlc:2922): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(vlc:2922): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(vlc:2922): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
[0x963287c] v4l2 demux error: VIDIOC_STREAMON failed
[0x963287c] v4l2 demux error: cannot set input (Device or resource busy)
[0x96430a4] v4l2 access error: VIDIOC_STREAMON failed
[0x96430a4] v4l2 access error: cannot set input (Device or resource busy)
[0x9371104] main input error: open of `v4l2:///dev/video0' failed: (null)
Any clue?