0
votes
1answer
19 views

Directories showing up in green(executable) even after removing execute permission for all. (Ubuntu 12.04) [duplicate]

I just copied a directory from a USB flash drive. I copied it from an NTFS drive and so all the files had execute permission. I executed chmod -x * to undo the execute permission. Despite that, all ...
1
vote
0answers
55 views

Logrotate no longer reads symlinked configuration file due to non-root ownership

We are currently upgrading from Ubuntu 12.04 LTS to 14.04 LTS on our ruby on rails application servers, and have noticed that the log files are no longer rotating. On both machines we have a file ...
2
votes
1answer
71 views

What to do when you removed execute permission from some system binaries or libraries?

It seems I removed executability from system binaries, resulting in loads of Permission denied. Do I have to force reboot into host's rescue mode or is there something else I can do while I'm still ...
1
vote
0answers
123 views

Can’t figure out Samba file share permissions as needed.

I’m in the final project class for my degree and my group has to have a Linux server that supports a Windows environment. With the files in the file share need to be read only, can be edited and then ...
5
votes
1answer
505 views

Writing raw images safely to USB sticks

Trying lots of different linux, on all kinds of hardware I find my self typing commands like this quite often: sudo dd if=xubuntu-13.10-desktop-amd64.iso of=/dev/sdc bs=10240 Needless to say, ...
3
votes
1answer
381 views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore [duplicate]

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
2
votes
1answer
79 views

chmod 600 fails silently

Here is what happens: $ chmod 600 foobar.txt $ ls -l total 1 -rwx------ 0 sampablokuper sampablokuper 13 Feb 19 21:00 foobar.txt Why is the last line not reading as follows? -rw------- 0 ...
0
votes
1answer
82 views

Is it possible to add granular permissions on a folder without installing acl?

I have a folder public_html with several subfolders on Ubuntu 12.04 server. Is it possible to add different permissions on individual subfolders for two new individual users without changing the ...
2
votes
1answer
3k views

Root Cron Won't Run Script (permission denied)

I've edited my root cron tab to periodically execute a script located in a particular user's folder using this command: sudo crontab -e When cron runs the script, this is the output: sh: 1: ...
2
votes
1answer
602 views

PHPStorm changes group when saving file

When editing a file with PHPStorm, the group is changed from www-data to my local user. I've added my local user to the www-data group, and if I edit the file with gedit/vim/etc. the group stays as ...
2
votes
1answer
592 views

How to properly setup web server directory permissions

I'm lost with this, hopefully I can find some help here: I have Ubuntu 12.04 LTS webserver. For example I have user "myuser". There is a public directory which is my web root. I chowned it and all ...
0
votes
0answers
48 views

Unable to write to hdd formatted in anything other ext2,3,4

I am unable to write to my HDD mounted on Ubuntu server 12.04 that are formatted to NTFS or FAT32. However when I format to EXT and Mount as auto its able to write. I tried chmod and chown but the ...
0
votes
2answers
175 views

Problem with file permissions in shared directory under /srv between OS X and Ubuntu

I'm setting up some folders where any user in the users group can collaborate on files, on a Ubuntu 12.04 LTS server. It seems that users on my machine have no problems editing each other's files (I ...
3
votes
1answer
78 views

Why does a manual mount set different file ownership?

I've been using the terminal for almost everything: in fact, I often don't even log in through the interface, I use the tty1 and go to the web with text-browsers. So, the external drive doesn't ...
1
vote
1answer
286 views

Can't sudo after lock password, can I recover from that?

After setup ubuntu with default settings, It allows user to login with password, so I use passwd -l [username] to forbid password login both in ssh and console. But when I use sudo to execute ...
1
vote
1answer
3k views

Can't start Tomcat on Ubuntu

I installed Tomcat on Ubuntu. Then I created a new user. Then did: liferay@web-svr:~/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/bin$ chmod +x *.sh Afterwards, I added JAVA_HOME and PATH in bash like ...
0
votes
0answers
33 views

Ubuntu directory permissions - Sticky bit - Prevent deletion of a file [duplicate]

I have a database called oss-pwds.kdb located in a folder /keepassx. This is a password database that I use with the KeePassX software. I want to allow all members of the "oss" group to open and ...
2
votes
0answers
2k views

Permission denied when Ubuntu is attempting to mount to a remote Windows share folder

Fellow guys, I encountered the error when I's mounting my Ubuntu server to a remote Windows share folder, the following is the error on terminal after I typed command line 'mount -a': mount ...
1
vote
3answers
358 views

Make web project writable by apache and other user

I am running ubuntu 12.04 LTS . To be able to view my web project in the browser I did the following: chown -R www-data:www-data /var/www/project Now I wanted to open the project in netbeans but it ...
3
votes
1answer
590 views

Procmail: Denying special privileges for “/etc/procmailrcs/default.rc”

I'm trying to setup postfix, dovecot and procmail to work together with virtual users. In the end I want to have virtual users and the possibility to add rules to sort incoming rules. For the last ...
0
votes
1answer
165 views

Give a Root owned folder web read and write access

I have an Ubuntu server for a client I am working on, doing development work. I have root access and they created a new vhost blog.domain.com so when I log into it with WinSCP it list the files and ...
1
vote
1answer
45 views

Is it a good practice to use svn for two different applications but on the same server?

Is it a good practice to use SVN for two different applications but on the same server ? I'm asking this because, whenever I update one of the application with svn it does not ask for password ...
1
vote
1answer
257 views

LAMP Server setup for personal development

I am setting up a LAMP server in VirtualBox for personal development. This will be an Ubuntu Server 12.04 install, and I will be using Virtual Hosts for Drupal, Yii, and other small PHP apps. Ideally ...
2
votes
2answers
514 views

Ubuntu Bash - Changing permissions to user files for automating Apache VirtualHost creation

Moved here from AskUbuntu I currently have a small Ubuntu Server 12.04 machine (test environment) with about 3 non-root users created. Each user has their own public_html directory under their ...
1
vote
0answers
140 views

External HDD read/write permission changing from a cron job

So, I run an overnight python script that runs a backup of our web data in the /var/www directory, then moves the backups to an external HDD in /media. The script in scheduled in the sudo crontab ...
0
votes
2answers
567 views

Linux Permissions vsftpd

I have mybb installed and running in /var/www/forums. I have two users part of the www group, logan and www-data. I have the recursive permissions of forums directory set to: chmod -R 755 forums ...
3
votes
3answers
5k views

Recovering from “chmod -R 777 /” in Ubuntu [duplicate]

Possible Duplicate: Wrongly set chmod / 777. Problems? I am using Ubuntu for development purposes. As I work on the database side, there are a lot of things which require file permissions ...
1
vote
0answers
174 views

vsftpd on Ubuntu not obeying filesystem permissions

I'm trying to set an FTP upload to a web root on Ubuntu 12.04 using vsftp. The user has a local account, username_ftp. I changed their home to their web root in /etc/passwd. ...
2
votes
2answers
566 views

Changing permissions for files in linux

I have started using Linux recently for development of a project and currently facing some issues with file permissions in the directories. I have some libraries .so files that I need to access from ...
2
votes
2answers
900 views

Moving a root directory to a separate partition

I'd like to create a new partition and move the contents of the /var directory to it for the security reason of having /var/www and other subdirectories "mounted" with nosuid, noexec, and nodev ...
1
vote
1answer
189 views

Accidentally set /lib permissions to 644

Long story short, I've got an Ubuntu server box that was recently compromised (I believe through a known exploit of an older version of Tomcat, which has already been updated). Part of the exploit ...
1
vote
1answer
633 views

Samba share file permissions - users can't open files that I create

I have set up an Ubuntu server (12.04 LTS) for samba file sharing. The problem I'm having has to do with files that I create on the server. Other users can't open them because I created them under a ...
3
votes
2answers
3k views

getting 553 - cannot create file in vsftpd (ubuntu 12.04)

I'm trying to setup a ftp account for a user that has read/write access to one folder: /items/myuser I've set up the account with username 'myuser' in Linux with the adduser command. After that, I've ...
0
votes
3answers
98 views

File Privileges

There is one user Lets call him B and he needs access Just to Read the File MEANS READ ACCESS and that file is own by another user A . How can I grant access to user A's file to User B.
17
votes
4answers
30k views

File permission issues with shared folders under Virtual Box (Ubuntu Guest, Windows Host)

I am using Ubuntu on Virtual Box and I have a folder which is shared between the host (Windows) and the VM (Ubuntu). When I open any file in the share folder in Ubuntu, I can not change it as its ...
3
votes
2answers
211 views

What is the proper solution to a web server trying to write to a directory?

So, I have a box with a "deploy" user. This deploy user owns a code repository and wordpress is running on this box... When wordpress attempts to do something like upload a plugin, it is using the ...
6
votes
4answers
3k views

When does chmod fail?

Under what circumstances will chmod fail? I looked at the man page but it only specifies usage and doesn't go into details about what circumstances it won't work in. I'd assume chmod will work if: ...
2
votes
1answer
424 views

Specific directory permission for one user using sftp

My web server structure looks like this: /Home/User/Public_Html/Website_one /Website_two /Website_three/Directory_one ...
4
votes
1answer
1k views

scp permission denied after 'hardening' with bastille

I recently 'hardened' two Ubuntu servers using Bastille, and now I get permission denied: scp whenever I try to scp files in. SSH login works fine. I've tried adding an /scp-dump folder with 777 ...
2
votes
4answers
9k views

How to permanently change the file/directory permission [closed]

How do I change the permission of file/directories such that I am able to create, edit, delete files/directories anywhere in my system? Currently I am using Ubuntu 12.04. I tried sudo chmod 777 -r ...
1
vote
3answers
9k views

Apache 403 Forbidden on sub folders?

I can view all files in the root directory (/var/www) but as soon as i enter a sub directory (eg /var/www/test) i get a 403 Forbidden error. I'm running Ubuntu 12.04.01. Have tried searching for ...
3
votes
1answer
614 views

Problem opening .dvi files

I would like to know why my Lubuntu 11.10 does not open my .dvi files created with Latex. Please, can anybody help me solve this problem? When I use evince L1.dvi, in the terminal, the evince ...
1
vote
2answers
4k views

Allowing write access to an SMB mounted drive

Following this guide I was able to get my Samba share to mount on my Ubuntu 12.04 system. I can navigate the folders just fine. However I cannot create a directory nor create a file. I get the ...
2
votes
4answers
377 views

Strange file ownership with Ubuntu

Normally we know when we create one file in Linux, the file's owner and group will set with the creator. For example, I have one user, usera, after I execute usera@srv1:$touch 1.txt I will find the ...
1
vote
1answer
626 views

Permisions overwritten when files are transfered via FTP. What to do?

Got my web server up and running using apache2 with the ability to ftp to /var/www folder. However, if I make an update to .html and copied over the file via ftp, the file's permisions become more ...
4
votes
4answers
5k views

What is the default permission of folder /var?

I am a complete beginner in Linux. I just installed Ubuntu 12.04 in a pendrive, then installed MySQL and Apache PHP and then I tried to install Moodle (a distance learning platform I use at work). The ...
6
votes
1answer
2k views

Evince fails to start because it cannot read .Xauthority

I'm logged in remotely over SSH with X forwarding to a machine running Ubuntu 10.04 (lucid). Most X11 applications (e.g. xterm, gnome-terminal) work fine. But Evince does not start. It seems unable to ...
3
votes
1answer
3k views

How should I rsync files in /var/www if I want them to be owned by www-data?

I have set up a new ec2 ubuntu box and installed apache and php5. By default you log onto the box with the ubuntu user who has sudo privileges. I believe apache runs as root and php5 runs as ...
1
vote
1answer
497 views

How does apache determine what directory to show from public_html?

I am using Ubuntu 12.04 and have configured apache to serve from ~/public_html. I am trying to serve some directory contents over http on LAN. When I did the following: ln -s ...
6
votes
1answer
1k views

Find a user's writable files and directories

How can I determine all files and folders that given user can write to? The user is nobody. Some script in bash or python, perhaps? I'm using Ubuntu 11.04