Networking :: NAS Permissions In Debian - How To Set

Mar 24, 2011

I have a Promise Technologies SmartStor NS4300N Network Attached Storage device. I have a brand new install with blank disks setup. I have mounted these network drives onto my local machine using the "mount" command. I have logged into the NAS using the same username and password that I am running from on my Debian Desktop machine.

When I attempt to copy data to the locally mounted NAS Directories, I am seeing permission errors. The directories that I am copying appear in the new file list, but they are read only. I receive an error message telling me that I do not have permissions to write to the directory that I just created. I went to the command line and using "sudo" attempted to change the ownership and permissions, but I received more error message indicating that I don't have permission to do this either.

I am able to copy files directly into the mounted directory, and I and open them, modify them, and delete them. I can even delete the new directory that I cannot seem to story anything in. Shouldn't the files I copy onto my subdirectory of the NAS (which uses the same username and password as the machine the directory is mounted onto) be available to me with full permissions? How can I correct the problem.

View 11 Replies


ADVERTISEMENT

Debian :: Recovering The Permissions?

Feb 11, 2010

Imagine that someone does the mistake of chmod -R 777 /etc. How can I recover the original permissions? Redhat have rpm --setperms <package>, but how about Debian?

View 6 Replies View Related

Debian :: Permissions For Anonymous Ftp Directory?

Aug 9, 2010

I set up an FTP server with two separate directories. One of them is mine, and the other one is shared (for anonymous ftp). The layout is like this.

/home/hallvor <---- this is my ftp directory where I keep my private files. I am the only user.
/home/ftp <---- this is the shared ftp directory with anonymous login.

Whenever I transfer files from my ftp directory to the public /home/ftp, I would like to: prevent anonymous users from deleting files in /home/ftp or uploading their own files to that directory (read only) What permissions must I set? I think this is all a bit confusing. I tried to chmod /home/ftp to 644 and change ownership to root, but that made it impossible to even log on anonymously.

View 8 Replies View Related

Debian :: Permissions Of System Users

Feb 27, 2015

I'm building a small web gui to connect a 3g modem with wvdial via web interface using perl cgi. Which permissions I should use. Now when doing "wvdial 3gconnect" from the perl script it don't have permission to do anything, reading config files, accessing the modem etc.

Its just a little raspberry with only 1 user not available from the internet so its not a problem with loose security. Is there some easy way to let the www-data user get system wide permission without setting the permissions on each thing it should access?

View 3 Replies View Related

Debian :: Cannot Log In After Folder Permissions Change

Apr 19, 2015

I have a Debian Wheezy 7 installation. When I turn it on it boots to the log in screen normally. However when I type in my username/password and try to login the screen briefly turns off for about one second and returns to the log in screen. I cannot log in.

This started happening immediately after I changed the owner and permissions for the "/tmp" folder and all of its contained files/directories. This is the only change I made to the system before the problem began. Immediately after I made the change, I rebooted the system and that's when the problem began.

View 13 Replies View Related

Debian :: Full Permissions For All Files

Feb 24, 2016

How do I do this?... I'm sick of running into this... permission denied :

I'm sudo and admin.

View 14 Replies View Related

Debian :: No Permissions To Drive - Partitioned?

Feb 19, 2010

I have a bit of a problem in my new install of Lenny (5.0.1). The machine in question was running XP and has a C: drive (system) and two other had drives (ide) one with music on and the other with videos. All were NTFS naturally.

I installed Lenny and re partitioned the system drive accordingly with swap and root partitions, no problems there.

The next phase was to convert the other two drives to ext3. The music drive has been backed up so the plan was to re-partition that to ext3, copy the video files to it and then re partition the now ex video drive and restore the music files to that.

I ran Gparted and partitioned the old music drive to ext3 but could not then mount it, it didn't do this after formating. I did not have permissions to mount the drive.

I read on a forum how to mount the drive from Terminal, going to /mnt, mkdir VideoDrive, mount /dev/hdb1 VideoDrive and presto it was mounted. However I still did not have permissions to it and could therefore not create directories.

Right clicking on the drive and showing properties now showed owner as root ~ create and delete files, group as root ~ access files, others ~ access files. All of these drop-downs are unavailable for changing.

I went into users and groups. There were groups there called mike and root so I selected both root user and mike user as members of both of these groups. Nope.

In the drive properties I entered Mount Point as /mnt/VideoDrive, File System as ext3, and Mount Options as defaults,unmask=000 0 0. The other forum I read stated that unmask is used to allow access to all users.

I then transfered these options to the Volume properties, again no joy.

I have added entries into the fstab and mtab files still no joy.

View 14 Replies View Related

Debian :: Granted Permissions Without Asking For Password?

Dec 21, 2010

When installing, I was not prompted to enter root password, but I was prompted to enter root name, user name and user password. Now it seems Terminal opens with admin permissions for user. This is not good.

View 9 Replies View Related

Debian :: Mount Permissions On External HD?

Nov 13, 2010

I have a debian machine with an external harddrive. I have a windows machine on the same network from which I can read the files from the debian drive, but I cant write to it.
At some point in time (several months ago?) I could.

currently, I have this line in my /etc/fstab: /dev/sdb1 /media/MUSIC/ vfat user,uid=1000,gid=1000,rw,umask=000 0 0

and i've tried a hundred different mount commands (but not as many as i've tried fstab lines) but generally have been using this at start up: sudo mount /dev/sdb1 /media/MUSIC/ (i am under the impression that i should not have to use 'sudo' when doing this, since the fstab line includes 'user' but if i dont, the command fails)

no matter what I've tried, the permissions come out as owned by root: drwxr-xr-x 905 root root 163840 2010-10-17 17:45 Music attempting (as root) to change ownership of the directory also does not work: chown: changing ownership of `/media/MUSIC/': Operation not permitted (because its a FAT file system, i think)

View 3 Replies View Related

General :: RW Permissions On External HDD - Chmod: Changing Permissions Of `whatever': Read-only Filesystem

Mar 15, 2010

I have a problem with my external hdd, I mounted it manually and in the mount table it says ive got rw permissions. But when i try to change permissions it says:

chmod: changing permissions of `whatever': read-only filesystem.

This is my mount table:

[root@localhost ExtHDD]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)

[code]....

View 6 Replies View Related

Ubuntu :: Change Permissions For File / Add These Lines Without Changing Permissions?

Oct 16, 2010

Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?

View 2 Replies View Related

Ubuntu :: Permissions For Rsync And BackinTime - Setup 2nd HD With Correct Permissions?

May 31, 2011

Problem: permissions for rsync and BackinTime. Setup: Ubuntu 11.04, Two internal HD, #1=main, single boot, #2=backup drive. Question: How do I set up my 2nd HD with correct permissions? Background: I had previously a dual boot XP+10.04 with a 2nd HD formatted as NTFS. With this I was able to use my rsync and backintime to my 2nd HD with no issue. My new set up is EXT4 on both HD.

(I even tried to reformat my 2nd HD as NTFS, but that didnt fix the issue) I followed [URL] to mount the 2nd HD and get permissions. But now when I run backintime i get this error: [E] Error: rsync: opendir "/home/myhome/.ssh" failed: Permission denied (13) I did my requisite reading for a newbie, and am stuck. I ran backintime as root, and it backed up ok. How do I run my user version of backintime? (i.e. How do I fix the permission issue?)

View 9 Replies View Related

Debian :: Camera And Usb Sticks Need Root Permissions?

Jul 10, 2010

How does one train a digital camera and USB stick to accept user access? Basically, this involves transferring photos from my camera to my machine, sorting and then moving favourites to the USB stick. Or moving selections that others have sent me to the USB stick. I am constantly changing ownership and permissions and it's driving me nuts. How can I send anything to a USB stick as a user?

View 10 Replies View Related

Debian :: Users / Groups Setup And Permissions

Jul 13, 2010

I am used to setting up users and groups on my daughters computers with Ubuntu installed.
user: magz (daughter)
user: nigel (me)
group: nima

We each have our own folder for files i.e. magz and nige. This has always worked well and it didn't matter which user is logged in we could create and access files in the other users folder with full permissions.
root@nbsq: /media/2xfi/files# ls -l
total 8
drwxrwxr-x 9 nigel nima 4096 Jul 13 09:45 magz
drwxrwxr-x 3 nigel nima 4096 Jul 13 09:45 nige

I have finally got around to getting her to try Debian which I always use, however I have never had to set up users, groups etc in Debian (squeeze) so I just did what I'm used to with Ubuntu. What I've found is that if I create a folder while I am logged in then that folder cannot be accessed by my daughter when she is logged in and the same applies if she creates a folder then I cannot access it when I am logged in, unless of course I use terminal to change the owners. In each case with the new folder the owner will be: root and the group will be: root. I would have thought what works for Ubuntu would work for Debian, however there must be differences.

View 13 Replies View Related

Debian :: Recursively Set Permissions For Certain Type Of File?

Aug 5, 2011

I want to set all directories in /example/ to +x without setting any non-directory files to +x, using the -R option of chmod. There must be a way to do this yes?

View 6 Replies View Related

Debian Configuration :: USB Mass Storage Permissions ?

May 20, 2011

When I connect a USB stick to my laptop, it is mounted as root:root. I want ot be able to use it as the logged in user

It has worked in the past (1+ month ago), but recently it just mount it as root:root.

My userid is 1000, so somewhere in the system it knows that the current user is relevant.

The directory created

The date is off System time is correct - so this could be an indication of what is wrong.

I have tried with my own custom compiled kernel and now I am using the latest 2.6.38 official image.

View 10 Replies View Related

Debian Configuration :: Can't Start X - Repairing Permissions

May 29, 2011

my ENTIRE hard drive now has user AND group permissions root. I can't start X and are having various permissions issues. although ive been using linux for a long time.

long story long, I did a debian netinst to my netbooks SSD. got everything EXACTLY as I wanted it, was very happy with my first go at debian but of course being a linux dork im always willing to tweak. I installed onto btrfs which I recently learned supports compression which not only saved precious SSD space (only 8GBs) but according to some benchmarks also improved performance. this was a boot option and would only start compressing new files. this, of course, could not be good enough. so I formatted my SD card btrfs, mounted it with compress option + my SSD defaults and copied over all files that weren't a mount (i.e. proc, dev, sys,...) however I forgot to copy permissions. so every file was copied with root:root ownership and I didn't realize this when booting to the SD card to verify things were working as I assumed ( never do this ) that getting to a login terminal was enough. So now I need to fix all permissions and I would really prefer it be without a clean install.

A netinst can take a dec amount of time and I had a lot of tweaking to do since I only used Xorg + i3 tiling wm. there has to be a way to fix this...I started trying to reinstall all the packages but kept running into issued where aptitude wasn't able to reinstall things like bash or perl-base, presumably bc they were in use or had incorrect permissions set

View 10 Replies View Related

Debian Configuration :: LAMP Server And Permissions To Www/

Jul 30, 2011

I just installed LAMP server and it works. Anyway, I have problems with permissions to www/. I can't access it! Its located in /srv/www.

What do you suggest? I need to be able to freely add/modify/remove files under www/ as 'dagrevis' (not 'root').

View 1 Replies View Related

Ubuntu :: Reset Apache 2 Permissions To Default Permissions?

Mar 16, 2010

Is it possible to reset apache 2 permissions to default permissions I'm using Ubuntu 9.10 command line server, would webmin give me this access ?

View 1 Replies View Related

Debian :: How To Change Permissions On Exfat Removable Media

Jul 20, 2015

I'm going traveling and I had the bright idea of putting my sensitive and irreplaceable files on an sd card. Then if I leave my stuff in a sketchy hostel for the day, I can easily take the card and might lose only a replaceable netbook. The problem is that I want some files to have 600 permissions (rw-------), readable and writable only by owner.

But no power on earth seems to be able to force a fuse-ified filesystem to pay attention. Whether I try "chmod 600 filename.txt" as the owner/user or as sudo makes no difference. Nothing works. The sd card is mounted with a line in /etc/fstab:

Code: Select allUUID=0000-0000 /mnt/64_GB_sdxc  exfat  auto,rw,user,exec,uid=1000,gid=1000,dmask=0022,flush,fmask=133  0    0

So the user owns the files and they have typical permissions instead of the automounted default of 700. That's all very nice, but I'd like to be able to change permissions on just a few files!

View 3 Replies View Related

Debian :: Suid And Writing Files Permissions In The ET Server?

Feb 22, 2010

I have tried to configure an Enemy Territory Server in an way that a common user could run it just executing a command line. The first thing I did was writing a script like that

/usr/local/games/enemy-territory/etded +set dedicated 1 +set net_port 27960 +set fs_game etpub +set fs_homepath /usr/local/games/enemy-territory/27960 +set sv_punkbuster 1 +set +exec server.cfg +set +exec punkbuster.cfg  +set +exec bots.cfg

and then putting it in the /usr/local/bin directory. Ok, the things seem to be fine, but then I realized that the program tries to write some config and log files. I noticed that because some warnings appear in the command line, like that Couldn't write etconfig.cfg always that I run the command as a normal user. On the other hand, if I give writing permission to these files, all the warnings disapear.
But I don't think it is a good way, because someone could change these files by hand, what would not be good.

My last try was to set the suid of the script up, with the command chmod u+s /usr/local/bin/etded-server
But as I already knew that suid does not work well with shell script I wrote a C source like that:

[Code]...

View 4 Replies View Related

Debian :: Don’t Have Write Permissions To Edit Files

Apr 13, 2016

I got Whonix set up, and everything in place to be running correctly and I was on cloud nine. The only problem I'm having is that whenever I try to go in and change my index.html files in /var/www/, or really do anything (add new file/folder, save or delete a file) I get the message that I don't have the right permission to do anything other than open and close the folders and files.

View 10 Replies View Related

Debian :: File Permissions To See Other Folders And Check The Contents

Jul 17, 2010

I've created a new group and a new user called dftp... Now I wanna do one thing... If 'dftp' connects thru ftp he should be directed to a particular location... and he shouldn't be able to see other folder except for his own including the parent folder that contains that location... I changed dftp's home folder to the location I want. However while connecting thru ftp. user dftp has been given permissions to see other folders and check out the contents of the other folders.

View 5 Replies View Related

Debian :: Terminal Command - Setting Permissions For Directory

Jul 15, 2011

I have a directory '/usr/local/games/quake4'. I want permissions for the directory, along with everything in it set to:
Owner: Create and delete files
Group: Access files
Others: Access files
What would I type in terminal to make this happen?

View 14 Replies View Related

Debian :: Use File Manager Actions With Root Permissions?

Jul 30, 2011

If I use the GUI File Manager I ofter get stuck because I need root permissions to write or delete some file or directory. I realize I can drop down to Terminal and do either a sudo or change the permissions of a particular file, but these are several extra steps. Is there a way I can perform root actions on files using File Manager/Browser? Or is there an alternative file manager program I can explore that is more flexible? I am currently using Debian 6.01a installed from the Live CD, Nautilus 2.30.1.

View 14 Replies View Related

Debian Configuration :: Setting Permissions For USB Device On Boot?

Mar 23, 2011

I am trying to figure out what needs to be done to automatically set read/write permissions for everyone for my proprietary USB device on system boot. I have created a udev rules file which changes the permissions for the device when it is connected, but it does not change the permissions when the system is booted with the device already connected. The file looks like this:

SUBSYSTEM=="usb_device", SYSFS{idVendor}=="our vendor id", MODE="0666"

Does something else need to be added to the rules file to make it work when the system boots with the device connected? Is there some other script which needs to be created somewhere?

View 1 Replies View Related

Debian Configuration :: Udev Rules To Change R/W Permissions?

Mar 28, 2011

I'm trying to allow non-root account to use avrdude to program mucrocontrollers. There are many articles online about how to do that, but it seems not to work for me. Every time i try to execute avrdude it says "permission denied". Here's "$ udevadm info --name=/dev/bus/usb/002/011 --attribute-walk" says looking at device '/devices/pci0000:00/0000:00:1d.1/usb2/2-1':

KERNEL=="2-1"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{configuration}==""

[code]....

However, after restarting udev, replugging the device, even rebooting the computer I still get "permission denied". The Vendor and Product match, so what's the problem?

View 7 Replies View Related

Debian Hardware :: How To Mount Set Permissions On New USB Hard Drive?

Jul 17, 2010

You know the great thing about having a debian system is that you have to reinstall so rarely you miss all the new changes that happen in the system until you have to do something like install a new piece of software and realize that fstab has been turned into spaghetti and you no longer have the slightest idea what is going on.I just got a new 1TB USB2 drive to use for backups. I plugged in it and it was recognized fine but it was formatted in NTFS which I didn't particularly want so I reformatted it as ext4FS. It automounts fine but only with all permissions set to root. I tried doing a direct chmod on the drive but that wasn't recognized. Where in the hodgepodge of HAL settings and whatnot do I set it to make the drive user accessible and mount to somewhere other than /media/disk?

View 1 Replies View Related

Debian :: Dependency: Cp: Preserving Permissions For `/var/lib/ucf/hashfile.7': Permis

Jan 13, 2011

My Debian Squeeze server that I'm trying to make a LAMP server is currently a LAM server. I get these errors when trying to install php5:

[Code]....

View 4 Replies View Related

Debian :: Change Default Permissions For Newly Created Files?

Jan 19, 2011

I'm new to Debian. I've read the documentation on this but it is too heavy for a new user to understand. I would like to change the default permissions for newly created files/directories.

I want all newly created files by 'user1' to have the default permissions of:
1. "owner can read and write"
2. "group can read and write"
3. "other can read only"

Permission 1 and 3 are already default. But I would like number 2 to be default as well. (the current default for group is read only).

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved