Ubuntu Servers :: Check A File Permission With Ssh?
Jun 5, 2011i have check a file permission with sshand i get : drwxrxwrwxwhat is "d" ?
View 2 Repliesi have check a file permission with sshand i get : drwxrxwrwxwhat is "d" ?
View 2 RepliesIm trying to run a program but my system won't let me.i used to be able to run executable files without a problem but i can't anymore when i double click the file i get "there is no application installed for executable files" i am unable to check "allow executing file as program" in file properties there is a script file which runs the program but all i get from the terminal is "permission denied"
View 14 Replies View RelatedHere's the background.
1x Windows Vista laptop (laptop1)
1x Windows 7 laptop (laptop2)
1x Mac laptop (laptop 3)
I am running Ubuntu server with 3 hard drives. I have Webmin installed. So far, I have the three laptops being able to connect to samba and accessing /home/insert_user_here. All laptop users have access to my /media/data2 (photographs, videos). That's all good. At first, I couldn't get other users but laptop 3 to access /media/sdb1, but I fixed that by changing permission to 755 so I guess everyone can access this. Atm, I want to only allow laptop #3 to connect to /media/sdd1 (be able to read/write/etc.) while laptop 1 and 2 can't even see the files. Also, laptop 1 and 2 can't seem to read and write through file share.
I am attempting to setup an Ubuntu server as a secondary DNS server. It seems whenever it tries to dump the master file the system log shows Permission denied.let me know if more information is needed.NOTE: where it says example.com I have simply removed my actual Domain name.
Mar 21 21:49:24 ulinux named[14418]: zone example.com/IN: Transfer started.
Mar 21 21:49:24 ulinux named[14418]: transfer of 'example.com/IN' from 192.168.0.15#53: connecte$
[code]....
I am in the www-data group...
Code:
mike@webserver:/var/www$ groups mike
mike : www-data adm dialout cdrom plugdev lpadmin sambashare admin
when I run ls...
Code:
mike@webserver:/var/www$ ls -la
total 8
drwxrwxr-x 2 www-data www-data 4096 2011-04-22 09:30 .
drwxr-xr-x 14 root root 4096 2011-04-20 18:22 ..
-rw-r--r-- 1 root root 0 2011-04-22 09:24 index.html
I assumed that means that the users in the www-data group can read, write and execute within this folder?
But when I try to create a new file/dir I get permission denied message.
I'm having fun messing around with my new LAMP server, but this problem is annoying me now .
(Oh and the index.html file was created by root, it's a blank file and can be deleted)
I looked at my apache2 logs. Code:[Wed Mar 10 01:56:34 2010] [crit] [client 192.168.1.100] (13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable the server is located at /etc/apache2 the default place.
View 1 Replies View RelatedIs it possible to set up a udev rule that will check if a file exists on a USB drive?
I've got a few ubuntu servers in environments with some very not-techy peoples. Im hoping to get to the point where I can give them a few USB sticks with scripts on them, and if they plus one of these sticks in it will be mounted in, say, /media/special (rather than /media/usb0..7) and then the script would be run. But if a usb drive without special.sh is inserted, it should be mounted to /media/usb0..7 as normal.
I've been googeling for udev rules, and it seems simple enough to specify a mount point based on brand/model/serialnumber/etc... but i havent been able to find anything about checking for the existance of a file.
Tho the more i think about it, the more im starting to think its not going to be that straight forward. Can udev check for a file on a drive before that drive is mounted? Is it going to be a case of mounting every drive to /media/usb0..7 then having a script run that will check for the file, and if its there change the mount point before running special.sh?
here is the upload form:
<form enctype="multipart/form-data" action="uploader.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
[Code]...
I am trying to set up a windows file server using fedora 14 with samba. when I go to the a windows machine I can log in the the samba server. When I try to go to the folder I need access to I get and error saying "you might not have permission to use this network resource" I am trying to access my home directory. Directory /home/mike, username mike. As far as I can tell it is not a permission of the directory. I have a user set up in samba that uses the mike user account.
View 6 Replies View RelatedI'm using ubuntu 11.04, I'm having some problem of ownership while sharing folder/files. to share i change the folder share option:1. Share this folder, then followed by 2.allow others to create and delete files in this folder3. guest access.Now if someone in my local network edit any file and save it, it gets locked. if some one copy their file in this folder the permission is marked as "no group" "no owner". and they get unaccessible to me. i tried doing chown <user> <folder> but it says Operation not permitted. Now how i can possibly share my folder on local network so that they can be edited by others without getting locked down , if they copy files i can able to modify them.
View 2 Replies View RelatedI have a C-function that create a file and then make a copy in the same directory, but somethin is wrong with permission or owners.The program starts as root user.The file creates by the program:
-rwxrwxrwx 1 root staff 199680 Oct 18 10:58 test
Ok, but after copying the permission is not the same.The file after copying (with new name) by the program:
-rw-r--r-- 1 root root 199680 Oct 18 10:58 test_copy
I want to have full permission of the copy, how to do??
Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.
View 1 Replies View RelatedHow can I check and set who can view or open a given folder or file?
View 1 Replies View Relatedfresh install of ubuntu karmic server. fresh, vanilla install of openssh-server attempt to connect either via standard ssh, linux client or puTTY win32 client system (both on local LAN)
First connect is great. connection established.
Second connection (via multiple clients) screams that: "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" and since I have strict checking, won't let me continue.
So, i do a little
Code:
To flush it out (i have backups,).
Then i try again:
I get the typical "Are you sure you want to continue connecting (yes/no)?" and i say yes. at which point, i offer the password for the username in question and it flat out refuses: "Permission denied, please try again."
Ok, so i have even gone as far as do a complete rip and replace of the ssh server and it's config files, however this continues to loop and repeat.
So, question one: Why does my key change?
Question two: Why am i getting "permission denied" errors on subsequent connect.
I have a server with a postgres database, apache and a custom java application.
I am trying to run rsnapshot to backup /home /etc and /var folders.
But I am running into issues with rsnapshot and permissions. More specifically these kind of errors,
Code:
I look at the permissions on these files with ls -la, I get
Code:
The owner of the files is root and postgres users. I am using passwordless login to connect to server as user XYZ. XYZ has root access to the server and to the database.
These files are all over the place. Some in /etc and some in /var/lib for instance. How can I best copy these remaining files.
my partitioning layout was as follows
Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.
View 4 Replies View Relatedi am writing a script for my ubuntu server and basically i want it to download a file that i specifically type in then take that file put it in a certain folder (note file may or may not be archived so i'd have to check for that) then add the name of that file to a text file.i know sounds strange but this is what i got so far:
Code:
#!/bin/bash
echo "-----Star of Script-----"
echo "Please enter URL:"
read URL
cd testdir
wget $URL
//extraction here + delete original archive (rar,zip,anything :S)
echo name_of_file >> list.txt
echo "-----End of Script-----"
I'm currently running Karmic on a old Dell Pentium 4, and I am having trouble copying files to this box from my laptop which is running Linux Mint Helena. I am able to see and connect to the shared directory on the Dell, copy and execute files from there, but cannot write to it. The permissions have been set to 777 on the shared directory and sub directories within that. The older Dell has a PATA hard disk, 300gb, while my newer laptop has a SATA hard disk. I've read that this can be a problem, and permissions may not be recognized? I'm not able to connect to the laptop from the Dell, neither of the administrator logins work, though I maybe need to do this as root?
Here is the smb.conf file I am running on both machines:
I want to be able to write to my server, not just read and execute. I am also not able to write to the server when logged on to a windows machine on the same network.
Just had a new VPS installed running Ubuntu Server 8.04 Getting some errors when I connect to the server and try to use apt.. only trying to install nano and after messing around I've managed to get the error to change.. but still can't get any further.
error
Code:
# sudo apt-get install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
[code]....
I switched from opensuse yesterday and i'm trying to configure the personal pc. In opensuse was pretty easy because i only needed to use the yast.Now: I've got 403 error
PHP Code:[code].....
I want to use SSH to connect to my desktop. I have used Ubuntu 10.10's encryption to encrypt my home folder (thus encrypting my .ssh folder). This means that the OpenSSH doesn't have access to my .ssh folder. When I try to log into SSH before logging in on the local machine I get the following error:
Code:
jason@ONONWARA:~$ ssh jason@192.168.1.152
Ubuntu 10.04.1 LTS
NIHATI
Permission denied (publickey).
If I log onto the machine, then use SSH it works fine. I want to use key based login, One way to get around this error would be use a different authorized_keys file, but I don't know of a way to do this. This is the contents of my sshd_config file:
Code:
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
[code]....
I am using Ubuntu server edition 10.04.1 running in Vmware server 2.02.I am connect via Putty so I can use copy and paste.My first goal is configuring a ftp server using PureFtpd using this guide.In section 10 I need to write this command
cat /dev/null > /etc/pure-ftpd/db/mysql.conf
I am getting this error
almog@Testing:~$ sudo cat /dev/null > /etc/pure-ftpd/db/mysql.conf
-bash: /etc/pure-ftpd/db/mysql.conf: Permission denied
I tried with and without "sudo" and I am getting the same error.
I have samba allowing only known users, and on the ubuntu side, I have the folder permission 777. I have the same exact samba smb.conf file(locations of course matching new server), but I can't get it to authenticate with the new server(Old server is up and running too) and I'm lost. I thought I had it figured out when I did my last server, but I seem to be missing something on this one.
View 1 Replies View RelatedI setup ubuntu 10.04.1 server on a computer I'm using as a server for my home. I can view the share folder on server from win7 I can read files but cannot right to the share. However from Xubuntu I was able to read and write no problem. So the question is... why can't windows 7 read and right like xubuntu? I have 2 win7 machines and both were denied writing to the share folder... I'm by no means an expert.. I setup the share using ubuntu server guide pdf... not sure if its done correctly maybe someone here knows off hand what kind of permissions would be causing this.
View 6 Replies View RelatedDoes anyone know how to modify permission on jail user. current jail user added to its /home/jail/*
How can I assign jail user(s) enough permission to access /opt, /var, or any other directories other than /home/jail/* ?
I have created a basic ssh server and i haven't done any configuring to it other than to port forward port 22. i am trying to connect to it from a client computer (they are on the same router). i enter the command "SSH <IP of the server>", and it asks me for the password. i have tried "SSH <my user name>@<IP of client>", but it says permission denied.
View 8 Replies View RelatedMe and 2 others are working on a website (Bob, Mike, and Joe). We made a group called developers and each of us are in the developers group. The Apache server runs as www-data. When we upload files, the file owner is the users name and the group is "developers".
/etc/group has the following
Code:
www-data:x:33:
bob:x:1000:
mike:x:1001:
[Code]....
I have always just set everything to 775 and just called it good. Well I don't want to wake up to a Russian political message plastered all over the site. It's time I do things properly.
Today, after postfix security upgrade, /tmp permissions changed from 777 to 755 on my Ubuntu Server 10.04.2
View 1 Replies View RelatedI am setting up WCCPV2 with squid with my ASA Box. I need to disable RP Filter with the following commands.
echo 0 >/proc/sys/net/ipv4/conf/wccp0/rp_filter
echo 0 >/proc/sys/net/ipv4/conf/eth0/rp_filter
When i run them as sudo i get a permission denied.