Tag Info

New answers tagged

0

That's not the way to do it. First of all, to set up passwordless access, you need a target machine. It is not something you set up locally, you must set up passwordless access to somewhere. Anyway, the way to do it is: ssh-keygen -t rsa -P '' That will generate your key. Now, you need to copy it to the target machine: ssh-copy-id -i ~/.ssh/id_rsa.pub ...


0

If it says permission denied, you probably need sudo. Try this command instead: sudo hadoop namenode -format It may not be needed, but as you are having issues it may help. The tutorial suggests it will be modifying folders in /usr - this could be the issue.


0

The rule should actually be: %www-data ALL = (www-data) NOPASSWD: * The specification in the brackets (Runas in sudoers) is to specify the target user (and/or group) (the one you specify using -u). That said, what you should actually be doing is setting correct permissions, including the setgid bit. How to avoid using sudo when working in /var/www?


0

All my apps had to be put in the DocumentRoot and then they all worked. What threw me off was the fact that 2 applications that were not in the DocumentRoot still worked and were accessible via my browser.


1

squid3 runs as the user proxy, so you set the owner user (and group) as proxy and then set permissions accordingly. You can do the following to change recursively the owner and owner group of all files under /var/cache/squid3 to user proxy and group proxy respectively: sudo chown -R proxy:proxy /var/cache/squid3 Also make sure the owner has the right ...


0

Looks like your permissions may be stuffed. I suggest to do this chown -R root:www-data app3 test This will change the owner and group of all files and folders in app3 and test to owner = root and group = www-data. Hope that fixes it for you.


1

You can use this script to fix wordpress permission: #!/bin/bash # # This script configures WordPress file permissions based on recommendations # from http://codex.wordpress.org/Hardening_WordPress#File_permissions # # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> # WP_OWNER=www-data # <-- wordpress owner WP_GROUP=www-data # <-- ...


2

You need to use the -R flag, which will recurse into every subdirectory. For example, running sudo chown -R my_username:my_username .hidden will make .hidden and all subdirectories owned by you. The * glob doesn't match any hidden directories (directories starting with a .).


0

Almost everything in /usr is owned by root:root I run find /usr -not -gid 0 -printf "%M\t%u\t%g\t%p\n" here using 15.04 and the output is -r-xr-sr-x root postdrop /usr/sbin/postqueue -rwsr-xr-- root dip /usr/sbin/pppd -r-xr-sr-x root postdrop /usr/sbin/postdrop drwxrwsr-t root lpadmin /usr/share/ppd/custom drwxrwsr-x root staff ...


11

Not possible. There is no way since permissions on a symlink are meaningless (a symlink is not a file; it only points to a file). The way to do this with Linux is through ACL though. symlink are explained as... The values of the file mode bits for the created symbolic link are unspecified. All interfaces specified by POSIX.1-2008 shall behave as if the ...


8

You can't. The underlying chmod system call simply doesn't support this in Linux, and for that matter, Linux doesn't care about the link's permissions either. From man chmod: chmod never changes the permissions of symbolic links; the chmod system call cannot change their permissions. This is not a problem since the permissions of symbolic links are ...


1

Press CtrlL, enter the address to the desired directory, and press CtrlD.


0

You problem (it's not really a problem) raises in two parts as I understand from you. First you want to give ownership of files created by a user in that directory directly to the apache user www-data. This can't be done that way. In real life You can't give something to your friend if he doesn't want it!! Same thing here, you can't give the ownership ...


3

You have the wrong path to rm, rmdir and mkdir commands. Change your line to this instead: Ruby ALL=NOPASSWD: /usr/bin/apt-get update, /bin/rmdir, /bin/rm, /bin/mkdir


2

When editing the sudoers file you need to use visudo rather than editing the file manually to actually use the resulting configuration immediately. Also, are you sure the username is really "Ruby" with a capital "r"? It's accepted best practice to use all lower case characters in *nix user names.


0

Files inside /bin/ need to be 755 except for symlinks those needs to be 777 and all are owned by root:root. Files inside /etc/ need to be 644 and owned by root:root except for (if you have any of these that is): -rw-r----- 1 root daemon 144 2007-02-20 13:41 at.deny drwxr-xr-x 2 root root 4096 2007-11-14 11:01 libpaper.d -rw-r----- 1 ...


0

is there a easier way to do it without using the terminal? Yes. You change the destination to your own account. Let's say you have an external USB stick that is identified mounted in /media/ as usb1. By default this stick (when freshly formatted) is owned by user and group root. The command sudo chown -R $USER:$USER /media/usb1 will change all ...


1

First, the comments from @user68186 are totally right and you probably should do it in the right way. But to answer you: create a new group sudo groupadd androidStudio Now add your user and your sister user to this group sudo usermod -a -G androidStudio suryateja do same as above for your sister username. Now you should change the group ownership ...


0

I had the same problem & none of the suggestions about Write_enable or folder permissions worked. I changed my connection type in my FTP client from FTP to SSH/SFTP, and everything worked fine. Apparently, VSFTPD requires a secure connection to write.


0

One possible solution to this would be check the permissions on the actual file. Navigate to that folder in terminal type 'll'. A list of all the files and folders in the directory will print out in a format like this: drwxr-xr-x eric eric 4096 May 18 21:02 Android/ The string "drwxr-xr-x" represents the permissions on the file. If the 'r' in the third ...


-1

Try running your file manager as root. I believe you right click on the background of your file manager and click open as root, if that doesnt work try that on a folder. If all else fails do sudo <replace with your file manager> or gksu <replace with your file manager>


0

I'm using apache 2.4.10 and munin 2.0.25-1 on ubuntu 15.04 To solve this problem, I followed Lars' sugestion from stackoverflow, i.e. using Require all granted instead of Allow from all, but applying the changes to the file /etc/munin/apache24.conf Changing /etc/munin/apache.conf had no effect for me. I have tried to grep me to the file determining which ...


0

Let's start Create user ubuntu sudo useradd ubuntu Make password sudo passwd ubuntu Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Create for SFTP only group xxx@xxx:~$ sudo groupadd sftp_users Add to a user "ubuntu" for SFTP only group xxx@xxx:~$ sudo usermod -G sftp_users ubuntu Make dir for sftp ...


1

Here's how I'd do it: First - I'd create a new filesystem on your partition: Start by unmountig your partiton: sudo umount /dev/sda7 Then, create the new filesystem: sudo mkfs.ext4 /dev/sda7 WARNING: this will erase all contents of /dev/sda7 partition. Then, I'd temporarily mount it somewhere; sudo mount /dev/sda7 /mnt Then, I'd copy the contents of ...


1

You can mount the 359GB partition in /home instead of /NewFolder Boot from a live CD/USB Mount /dev/sda5 and /dev/sda7 Run sudo mv /mountpoint/to/dev/sda5/home/* /mountpoint/to/dev/sda7 Edit /etc/fstab On the line that mounts /NewFolder, replace /NewFolder by /home Original line: UUID=efd23971-f61a-41f3-bd28-bbdf76c74673 /NewFolder ext4 ...


3

Sure, it's possible Replace <your_user_name> with your user name and NewFolder with a name of your choice. Create a new mount point, eg: mkdir ~/NewFolder and mount sudo mount /dev/sda7 $HOME/NewFolder If it works then change the entry in your fstab: sudo nano /etc/fstab from this UUID=efd23971-f61a-41f3-bd28-bbdf76c74673 /NewFolder ...


1

The home folder is supposed to hold your user folder. When you mount a partition to /Home the first thing that is created on that partition is the user's directory. You can mount any partition to /home and use. If you value the data in that folder You could create a soft Link to that folder to any new folder under your /home and call it whatever you like. ...


0

sudo works with a mechanism that is called setuid (Set User ID, or also called suid). If that bit is set on an executable file (like sudo), then the application is executed under the permissions of the user, who is the owner of that file (in case of sudo, the owner is the root user). That means, sudo is executed as root. So far so good. But, now nothing ...


2

dap is not an option for pbrun. dap is the command that is to run under username through pbrun. Dap is a small statistics and graphics package based on C. Version 3.0 and later of Dap can read SBS programs (based on the utterly famous, industry standard statistics system with similar initials - you know the one I mean)! The user wishing to perform basic ...


2

dap there is the command being run through PowerBroker. Full usage: pbrun [-v][-n][-p][-d option] [-h hostname] [-u username] command [args ...]


3

pbrun is used to request that an application or command be run in a controlled account. -u username sets the requesting user to be username. In your case, the command dap is started for the user [username], it's not an option for pbrun. Sorry @Rinzwind, OP asked: Dap is a statistics and graphics program, that performs data management, analysis, ...


-1

You can only write to /var/run as a user with an effective user ID of 0 (ie as root). You should change the ownership to the user/group under which you wish to run the process. check this article.


0

I have got mine to work First open GoldenDict hit F3 to open the Dictionary menu, under files select add from the right side, navigate to the folder where the download dictionaries are (.bgl or others) do not open the directory just select it and click on open (right down conner) you will be return the GoldenDict dictionary menu but you shall see the url of ...


0

According to the first line it would like to write on your storage, and it didn't have permission. Likely it writes in the /etc directory and it has root owner that's why you need to run it with sudo.


0

You need to enable Developer Mode first in order to see this menu entry. To enable Developer Mode: System Settings About this phone Developer mode (last point on this page)


0

It was my classpath. A friend told me about the -cp flag that could be used to define the classpath. once that was in, the JVM found main(). however now i've just got to find out why it can't find the file i'm passing in for main to work on.


0

sudo chown -R yourusername ~/android/system/.repo Where yourusername is your Username which you use to login.


2

You are getting all those "permission denied" messages because the directories are not readable by you and you are not running as root. xorg.conf would be in a readable/traversable directory anyway (/etc/X11), so if you didn't find it, it doesn't exist (but read on). If you don't want to see all the permission denied messages, just redirect stderr to ...


1

Use sudo: sudo find / -name xorg.conf sudo allows a permitted user to execute a command as the superuser or another user. For more info: man sudo (you can quit with Q)


0

It's expected that you cannot change this file's permissions as a regular user because you're not this device's owner. Nothing out of the ordinary here. With regards to symlinking the /dev/ttyUSB0 as /dev/ttyS0 - I think it's a bad idea. Unless you have a source of the program trying to use the port, you don't really know how the developer checks for the ...


0

Try giving sudo the -i flag (login shell): sudo -i -u postgres psql


0

The htdocs folder need 777 permission using sudo chmod 777 -R /opt/lampp/htdocs. Try to add files and folders in the htdocs folder. It works then. This will help other folders inside htdocs as well.


0

Changing ownership of /var/www from apache to nobody, is not a good idea ;) Maybe try instead usermod -d /var/www -m ftpuser and go from there?


0

Permission errors are what is to expected if we put our HOME on a NTFS partition, because these will not support the Ubuntu file permissions at all. To shared data with Windows we therefore have to set up a dedicated data-only folder on this NTFS partition which will then be mounted to be accessible from Ubuntu. We can even put a symlink to these folder in ...


0

Add your second admin to the "admin" group: sudo usermod -a -G admin userName Also make sure that the /etc/sudoers file has the following line: %admin ALL=(ALL) ALL This allows people in group "admin" to run any and all commands by prepending them with "sudo" as this: sudo edit /etc/apache2/apache2.conf sudo service apache restart


0

Your www-data group does not have write permissions on the folder, only user www-data does. Run: chmod g+w folder If you have subfolders and files within the folder, run: chmod -R g+w folder


0

To me, it sounds like you aren't using the correct path to your drive. You need to find the mountpoint of your drive, and change the permissions of that folder. To find the mountpoint, open a terminal and type mount. This will show you a list of all the partitions mounted, and where they are mounted. Find your device and remember where it's mounted. If you ...


0

In the sudoers file, You can allow them to sudo run certain commands as certain users. ie. taken from the linked help dgb boulder = (operator) /bin/ls, (root) /bin/kill, /usr/bin/lprm Then user dgb is now allowed to run /bin/ls as operator, but /bin/kill and /usr/bin/lprm as root. You will need to find the applications that he will need to be able ...


0

So after a few days of no luck I decided to have the server admin reboot the virtual server. I waited another day before giving things another try and luckily it looks like things are working now. Best of luck to you if you have a similar problem as mine.


-1

Perhaps by adding these lines into /etc/rc.local and sudo chmod a+x /etc/rc.local, which is the recommended action for init as well. But I assume, that there should be better methods for controlling the backlight, e.g. here: Cannot change backlight brightness Ubuntu 14.04



Top 50 recent answers are included