Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: remove delete permissions

  1. #1
    Join Date
    May 2008
    Beans
    17

    remove delete permissions

    Hi All,

    I have created folder in root named /samba and I have share this folder .I can access thgis folder from windows and also have the rwx permissions .The thing is I want to remove the delete permission to this folder without removing the write permission.Is there any way to do that?


    Thnaks

  2. #2
    Join Date
    Jul 2008
    Beans
    52

    Re: remove delete permissions

    not sure if im asking the same thing as the guy who started this thread

    but ive read many threads trying to figureout similiar things and well sadly no response to this thread in 3 weeks being open

    soo ill post my question/concern issues

    1. im a linux newb
    2. im a ubuntu newb
    3. i love learning this crap

    issues

    i wanted to make backups of firefox and thunderbird so i compressed the two folders in home dir but had to show hidden files

    i didnt realize that the compressed files i made were also hidden, so i figured thats fine

    i then transported them to my windows partition to where i keep my backup files and well i didnt see the files when i moved them so i was confused

    finally figured out that they were hidden, soo i havent gone into windows or anything yet but i have a feeling these files might be unuseable in windwos? yes/no i dont know

    bottom line is... how do you remove root/hidden permissions on these select files, or any specific file/folder for that matter

    i saw someone mention in another thread do this

    ls -l folder_name

    so i did and it said

    ls -l .mozilla.tar.gz
    -rw-r--r-- 1 username username 76288511 2008-07-14 20:38 .mozilla.tar.gz

  3. #3
    Join Date
    Apr 2007
    Beans
    281
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: remove delete permissions

    Quote Originally Posted by babyrajT View Post
    Hi All,

    I have created folder in root named /samba and I have share this folder .I can access thgis folder from windows and also have the rwx permissions .The thing is I want to remove the delete permission to this folder without removing the write permission.Is there any way to do that?


    Thnaks
    Hello babyrajT,

    you can do this by using the sticky bit, modify your samba directory by typing the following:

    Code:
    chmod +t samba -R
    with this, only the file owner, root or a super user has priviledges to delete files from your samba folder. The -R option stands for recursive and applies changes to sub-folders.

  4. #4
    Join Date
    Apr 2007
    Beans
    281
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: remove delete permissions

    Quote Originally Posted by nycste View Post
    not sure if im asking the same thing as the guy who started this thread

    but ive read many threads trying to figureout similiar things and well sadly no response to this thread in 3 weeks being open

    soo ill post my question/concern issues

    1. im a linux newb
    2. im a ubuntu newb
    3. i love learning this crap

    issues

    i wanted to make backups of firefox and thunderbird so i compressed the two folders in home dir but had to show hidden files

    i didnt realize that the compressed files i made were also hidden, so i figured thats fine

    i then transported them to my windows partition to where i keep my backup files and well i didnt see the files when i moved them so i was confused

    finally figured out that they were hidden, soo i havent gone into windows or anything yet but i have a feeling these files might be unuseable in windwos? yes/no i dont know

    bottom line is... how do you remove root/hidden permissions on these select files, or any specific file/folder for that matter

    i saw someone mention in another thread do this

    ls -l folder_name

    so i did and it said

    ls -l .mozilla.tar.gz
    -rw-r--r-- 1 username username 76288511 2008-07-14 20:38 .mozilla.tar.gz
    when browsing a directory with nautilus(system graphical file browser) you can see hidden files by pressing ctrl+h,

    how do you remove root/hidden permissions on these select files, or any specific file/folder for that matter
    you don't want to remove root permissions and you unhide a file by removing the '.' at the beginning of the file, like:
    Code:
    sudo mv .mozilla.tar.gz mozilla.tar.gz
    if you want to set write permissions for you, change the file ownership with
    Code:
    sudo chown nycste .mozilla.tar.gz
    or
    Code:
    sudo chmod 664 .mozilla.tar.gz

  5. #5
    Join Date
    Jul 2008
    Beans
    52

    Re: remove delete permissions

    Quote Originally Posted by smo0th View Post
    when browsing a directory with nautilus(system graphical file browser) you can see hidden files by pressing ctrl+h,



    you don't want to remove root permissions and you unhide a file by removing the '.' at the beginning of the file, like:
    Code:
    sudo mv .mozilla.tar.gz mozilla.tar.gz
    if you want to set write permissions for you, change the file ownership with
    Code:
    sudo chown nycste .mozilla.tar.gz
    or
    Code:
    sudo chmod 664 .mozilla.tar.gz
    thanks man, this worked fine
    sudo mv .mozilla.tar.gz mozilla.tar.gz

    now i dont quite fully understand the changing permissions thing on the 2 lines u mentioned afterwards but the . before the name suggests hidden or root protected so now i know and understand that

    how would i change a file without using the sudo mv command?
    sudo nautilus

    which then gives me root power right and then i could simply right click go to properties and remove or remove the . before the name?

    thanks

  6. #6
    Join Date
    Jul 2008
    Beans
    25

    Re: remove delete permissions

    Quote Originally Posted by nycste View Post

    how would i change a file without using the sudo mv command?
    sudo nautilus

    which then gives me root power right and then i could simply right click go to properties and remove or remove the . before the name?
    thanks
    sudo nautilus opens up a regular file browser as root, so you can indeed remove the . using it, provided you can use a file browser.

  7. #7
    Join Date
    Apr 2007
    Beans
    281
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: remove delete permissions

    Quote Originally Posted by nycste View Post
    how would i change a file without using the sudo mv command?
    if the file has root ownership you need to use sudo in order to have enough permissions to change it, be careful when using sudo and opening root file browsers like with sudo nautilus, you don't want to accidentally delete files or something like that

  8. #8
    Join Date
    Jul 2008
    Beans
    52

    Re: remove delete permissions

    Quote Originally Posted by 00Davo View Post
    sudo nautilus opens up a regular file browser as root, so you can indeed remove the . using it, provided you can use a file browser.
    got it thanks

    Quote Originally Posted by smo0th View Post
    if the file has root ownership you need to use sudo in order to have enough permissions to change it, be careful when using sudo and opening root file browsers like with sudo nautilus, you don't want to accidentally delete files or something like that
    gotcha, and yea i could imagine how easy it is to delete stuff

  9. #9
    Join Date
    Jul 2008
    Beans
    52

    Re: remove delete permissions

    Quote Originally Posted by smo0th View Post
    or
    Code:
    sudo chmod 664 .mozilla.tar.gz
    can someone explain what the

    chmod 664 stands for.. thx

    mainly the number is in question, chmod i know is a command to control ownership or something i used it setting up nvidia drivers

  10. #10
    Join Date
    Jul 2008
    Location
    /$home
    Beans
    1,074
    Distro
    Ubuntu Development Release

    Re: remove delete permissions

    chmod 664 filename gives the owner of the file read & write (4+2+0) permission, gives the group read & write (4+2+0) permission, and gives the rest of the world read-only (4+0+0) permission

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •